|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| HttpContextAccess | A HttpContextAccess makes it possible for a web resource implementation class to access and manipulate HTTP request and response information directly. |
| HttpRequestContext | An abstraction for a HTTP request |
| HttpResponseContext | Encapsulates the response to a HTTP request. |
| ResourceConfig | The resource configuration interface for configuring a web application. |
| Class Summary | |
|---|---|
| ClasspathResourceConfig | A mutable implementation of DefaultResourceConfig that dynamically
searches for root resource classes in the paths declared by the property
ClasspathResourceConfig.PROPERTY_CLASSPATH. |
| DefaultResourceConfig | A mutable implementation of ResourceConfig that declares
default values for features. |
| PackagesResourceConfig | A mutable implementation of DefaultResourceConfig that dynamically
searches for root resource classes given a set of package names. |
Low-level interfaces and annotations used to create RESTful service resources. E.g.:
@URITemplate("widgets/{widgetid}")
public class WidgetResource extends WebResource {
public void handleRequest(HTTPRequest request, HTTPResponse response) {
if (request.getHttpMethod().equals("GET")) {
String replyStr = "<widget id='"+
request.getURIParameters().get("widgetId").get(0).getValue()+"'/>";
StringRepresentation reply = new StringRepresentation(replyStr,
"application/widgets+xml");
response.setRepresentation(reply);
}
else ...
}
}
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||