public class WrapperRestlet extends Restlet
| Constructor and Description |
|---|
WrapperRestlet(Restlet wrappedRestlet)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Application |
getApplication()
Returns the parent application if it exists, or null.
|
java.lang.String |
getAuthor()
Returns the author(s).
|
Context |
getContext()
Returns the context.
|
java.lang.String |
getDescription()
Returns the description.
|
java.util.logging.Logger |
getLogger()
Returns the context's logger.
|
java.lang.String |
getName()
Returns the display name.
|
java.lang.String |
getOwner()
Returns the owner(s).
|
void |
handle(Request request,
Response response)
Handles a call.
|
boolean |
isStarted()
Indicates if the Restlet is started.
|
boolean |
isStopped()
Indicates if the Restlet is stopped.
|
void |
setAuthor(java.lang.String author)
Sets the author(s).
|
void |
setContext(Context context)
Sets the context.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setName(java.lang.String name)
Sets the display name.
|
void |
setOwner(java.lang.String owner)
Sets the owner(s).
|
void |
start()
Starts the Restlet.
|
void |
stop()
Stops the Restlet.
|
createFinder, finalize, getFinderClass, handle, handle, handle, setFinderClasspublic WrapperRestlet(Restlet wrappedRestlet)
wrappedRestlet - The wrapped Restlet instance.public Application getApplication()
RestletgetApplication in class Restletpublic java.lang.String getAuthor()
Restletpublic Context getContext()
RestletgetContext in class Restletpublic java.lang.String getDescription()
RestletgetDescription in class Restletpublic java.util.logging.Logger getLogger()
Restletpublic java.lang.String getName()
Restletpublic java.lang.String getOwner()
Restletpublic void handle(Request request, Response response)
RestletContext.setCurrent(Context)
method and by attempting to start it, unless it was already started. If
an exception is thrown during the start action, then the response status
is set to Status.SERVER_ERROR_INTERNAL.
Subclasses overriding this method should make sure that they call super.handle(request, response) before adding their own logic.
public boolean isStarted()
Restletpublic boolean isStopped()
Restletpublic void setAuthor(java.lang.String author)
Restletpublic void setContext(Context context)
RestletsetContext in class Restletcontext - The context.public void setDescription(java.lang.String description)
RestletsetDescription in class Restletdescription - The description.public void setName(java.lang.String name)
Restletpublic void setOwner(java.lang.String owner)
Restletpublic void start()
throws java.lang.Exception
Restletpublic void stop()
throws java.lang.Exception
RestletCopyright © 2005-2024 Restlet.