|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2008 the original author or authors. |
|
|
|
|
* Copyright 2002-2010 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -22,10 +22,9 @@ import java.io.IOException; |
|
|
|
|
import java.io.InputStream; |
|
|
|
|
import java.net.MalformedURLException; |
|
|
|
|
import java.net.URL; |
|
|
|
|
|
|
|
|
|
import javax.portlet.PortletContext; |
|
|
|
|
|
|
|
|
|
import org.springframework.core.io.AbstractResource; |
|
|
|
|
import org.springframework.core.io.AbstractFileResolvingResource; |
|
|
|
|
import org.springframework.core.io.ContextResource; |
|
|
|
|
import org.springframework.core.io.Resource; |
|
|
|
|
import org.springframework.util.Assert; |
|
|
|
@ -47,7 +46,7 @@ import org.springframework.web.portlet.util.PortletUtils; |
|
|
|
|
* @see javax.portlet.PortletContext#getResourceAsStream |
|
|
|
|
* @see javax.portlet.PortletContext#getRealPath |
|
|
|
|
*/ |
|
|
|
|
public class PortletContextResource extends AbstractResource implements ContextResource { |
|
|
|
|
public class PortletContextResource extends AbstractFileResolvingResource implements ContextResource { |
|
|
|
|
|
|
|
|
|
private final PortletContext portletContext; |
|
|
|
|
|
|
|
|
|