|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
HttpContext | A HttpContext makes it possible for a web resource implementation class to access and manipulate HTTP request and response information directly. |
HttpRequestContext | An abstraction of a HTTP request. |
HttpResponseContext | An abstraction of a HTTP response. |
ResourceContext | The resource context provides access to instances of specified resource classes (dependencies). |
Class Summary | |
---|---|
ApplicationConfigAdapter | An extension of DefaultResourceConfig that adapts an instance
of ApplicationConfig . |
ClasspathResourceConfig | A mutable implementation of DefaultResourceConfig that dynamically
searches for root resource classes and providers 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 in a given a set of declared packages and
in all (if any) sub-packages of those declared packages. |
ResourceConfig | The resource configuration for configuring a web application. |
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 |