Servlet/PortletContextResource inherit isReadable, contentLength and lastModified from AbstractFileResolvingResource
This commit is contained in:
parent
b2b1ff60dd
commit
d1afb29074
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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.servlet.ServletContext;
|
||||
|
||||
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.util.WebUtils;
|
|||
* @see javax.servlet.ServletContext#getResource
|
||||
* @see javax.servlet.ServletContext#getRealPath
|
||||
*/
|
||||
public class ServletContextResource extends AbstractResource implements ContextResource {
|
||||
public class ServletContextResource extends AbstractFileResolvingResource implements ContextResource {
|
||||
|
||||
private final ServletContext servletContext;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue