public interface GetableResource extends Resource
| Modifier and Type | Method and Description |
|---|---|
Long |
getContentLength()
The length of the content in this resource.
|
String |
getContentType(String accepts)
Given a comma seperated listed of preferred content types acceptable for a client, return one content type which is the best.
|
Long |
getMaxAgeSeconds()
How many seconds to allow the content to be cached for, or null if caching is not allowed
|
void |
sendContent(OutputStream out,
Range range,
Map<String,String> params)
If range not null is a Partial content request
|
authenticate, authorise, checkRedirect, getModifiedDate, getName, getRealm, getUniqueIdcompareTovoid sendContent(OutputStream out, Range range, Map<String,String> params) throws IOException
IOExceptionLong getMaxAgeSeconds()
String getContentType(String accepts)
Long getContentLength()
Copyright © 2015. All rights reserved.