|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceHandler
An interface to describe an object that can provide a representation of itself
as a resource. Objects of this kind could be thought of as documents
which can be read using the resource-representation as well as objects
whose methods can be invoked when used by XmlRpcServiceServlet.
| Method Summary | |
|---|---|
int |
getLength()
To populate the Content-Length header. |
String |
getMimeTypeChosen(Iterator acceptedMimeType)
Chooses the appropriate mime-type from the list provided. |
long |
getModificationDate()
To be returned to answer such queries as HTTP HEAD queries. |
void |
outputRepresentation(OutputStream response,
String mimeTypes)
Outputs content a descriptive state representation in the mime-type it recognizes as appropriate. |
| Method Detail |
|---|
void outputRepresentation(OutputStream response,
String mimeTypes)
throws IOException
response - the response to output to, the content-length,
content-type and other headers should first be set.mimeTypes - the list of mime-types as received by the
Accept-Type http header.
IOExceptionString getMimeTypeChosen(Iterator acceptedMimeType)
outputRepresentation(java.io.OutputStream, java.lang.String).
acceptedMimeType - an iterator of mime-types (such as text/plain
possbly followed by a semicolon with a quality value)
long getModificationDate()
int getLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||