public class ETaggedResource extends Object implements org.springframework.web.servlet.resource.HttpResource
lastModified() for more information.| Modifier and Type | Class and Description |
|---|---|
static class |
ETaggedResource.ResourceNotModifiedException |
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength() |
static org.springframework.core.io.Resource |
create(org.springframework.core.io.Resource resource,
javax.servlet.http.HttpServletRequest request,
String responseETag) |
org.springframework.core.io.Resource |
createRelative(String relativePath) |
boolean |
exists() |
String |
getDescription() |
File |
getFile() |
String |
getFilename() |
InputStream |
getInputStream() |
org.springframework.http.HttpHeaders |
getResponseHeaders() |
URI |
getURI() |
URL |
getURL() |
long |
lastModified()
If this resource's ETag matched the request's ETag, invoking this method will throw a
ResourceNotModifiedException.
|
public static org.springframework.core.io.Resource create(org.springframework.core.io.Resource resource,
javax.servlet.http.HttpServletRequest request,
String responseETag)
public boolean exists()
exists in interface org.springframework.core.io.Resourcepublic URL getURL() throws IOException
getURL in interface org.springframework.core.io.ResourceIOExceptionpublic URI getURI() throws IOException
getURI in interface org.springframework.core.io.ResourceIOExceptionpublic File getFile() throws IOException
getFile in interface org.springframework.core.io.ResourceIOExceptionpublic long contentLength()
throws IOException
contentLength in interface org.springframework.core.io.ResourceIOExceptionpublic long lastModified()
throws IOException
lastModified in interface org.springframework.core.io.ResourceIOExceptionpublic org.springframework.core.io.Resource createRelative(String relativePath) throws IOException
createRelative in interface org.springframework.core.io.ResourceIOExceptionpublic String getFilename()
getFilename in interface org.springframework.core.io.Resourcepublic String getDescription()
getDescription in interface org.springframework.core.io.Resourcepublic InputStream getInputStream() throws IOException
getInputStream in interface org.springframework.core.io.InputStreamSourceIOExceptionpublic org.springframework.http.HttpHeaders getResponseHeaders()
getResponseHeaders in interface org.springframework.web.servlet.resource.HttpResourceCopyright © 2018 Fujion Framework. All rights reserved.