public class TemplateDispatcher extends Client
| Constructor and Description |
|---|
TemplateDispatcher(Context context)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doHandle(Request request,
Response response)
Actually handles the call.
|
Context |
getContext()
Returns the context.
|
void |
handle(Request request,
Response response)
Handles the call after resolving any URI template on the request's target
resource reference.
|
void |
setContext(Context context)
Sets the context.
|
getConnectTimeout, handle, handle, handle, isAvailable, setConnectTimeout, start, stopgetProtocols, setProtocolsfinalize, getApplication, getAuthor, getDescription, getLogger, getName, getOwner, isStarted, isStopped, setAuthor, setDescription, setName, setOwnerpublic TemplateDispatcher(Context context)
context - The context.protected void doHandle(Request request, Response response)
Request.getOriginalRef() with the the
targeted one, it must be overridden by subclasses.request - The request to handle.response - The response to update.public Context getContext()
Restlet.getContext in class Restletpublic void handle(Request request, Response response)
public void setContext(Context context)
Restlet.setContext in class Restletcontext - The context to set.Copyright © 2005-2012. All Rights Reserved.