|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.gwt.Uniform
org.restlet.gwt.Restlet
public class Restlet
Uniform class that provides a context and life cycle support. It has many subclasses that focus on specific ways to process calls. The context property is typically provided by a parent Component as a way to encapsulate access to shared features such as logging and client connectors.
Constructor Summary | |
---|---|
Restlet()
Constructor. |
|
Restlet(Context context)
Constructor. |
Method Summary | |
---|---|
Context |
getContext()
Returns the context. |
void |
handle(Request request,
Response response,
Callback callback)
Handles a call. |
boolean |
isStarted()
Indicates if the Restlet is started. |
boolean |
isStopped()
Indicates if the Restlet is stopped. |
void |
setContext(Context context)
Sets the context. |
void |
start()
Starts the Restlet. |
void |
stop()
Stops the Restlet. |
Methods inherited from class org.restlet.gwt.Uniform |
---|
delete, delete, get, get, handle, head, head, options, options, post, post, post, put, put, put |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Restlet()
public Restlet(Context context)
context
- The context.Method Detail |
---|
public Context getContext()
public void handle(Request request, Response response, Callback callback)
handle
in class Uniform
request
- The request to handle.response
- The response to update.callback
- The callback invoked upon request completion.public boolean isStarted()
public boolean isStopped()
public void setContext(Context context)
context
- The context.public void start() throws java.lang.Exception
java.lang.Exception
public void stop() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |