|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Uniform
com.noelios.restlet.TemplateDispatcher
public class TemplateDispatcher
Base call dispatcher capable of resolving target resource URI templates. Concurrency note: instances of this class or its subclasses can be invoked by several threads at the same time and therefore must be thread-safe. You should be especially careful when storing state as member variables.
Constructor Summary | |
---|---|
TemplateDispatcher(Context context)
Constructor. |
Method Summary | |
---|---|
protected void |
doHandle(Request request,
Response response)
Actually handles the call. |
Context |
getContext()
Returns the context. |
java.util.logging.Logger |
getLogger()
Returns the context's logger. |
void |
handle(Request request,
Response response)
Handles the call after resolving any URI template on the request's target resource reference. |
Methods inherited from class org.restlet.Uniform |
---|
delete, delete, get, get, handle, head, head, options, options, post, post, put, put |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateDispatcher(Context context)
context
- The context.Method Detail |
---|
protected void doHandle(Request request, Response response)
Request.getOriginalRef()
with the the
targetted one, it must be overriden by subclasses.
request
- The request to handle.response
- The response to update.public Context getContext()
public java.util.logging.Logger getLogger()
public void handle(Request request, Response response)
handle
in class Uniform
request
- The request to handle.response
- The response to update.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |