public class LinkRestHandler
extends cc.clayman.console.BasicRequestHandler
Constructor and Description |
---|
LinkRestHandler() |
Modifier and Type | Method and Description |
---|---|
protected cc.clayman.console.AbstractRestRequestHandler |
badRequest(org.simpleframework.http.Response arg0,
java.lang.String arg1) |
protected cc.clayman.console.AbstractRestRequestHandler |
complain(org.simpleframework.http.Response arg0,
java.lang.String arg1) |
void |
createLink(org.simpleframework.http.Request request,
org.simpleframework.http.Response response)
Create link given a request and send a response.
|
void |
deleteLink(org.simpleframework.http.Request request,
org.simpleframework.http.Response response)
Delete a link given a request and send a response.
|
void |
getLinkInfo(org.simpleframework.http.Request request,
org.simpleframework.http.Response response)
Get info on a link given a request and send a response.
|
boolean |
handle(org.simpleframework.http.Request request,
org.simpleframework.http.Response response)
Handle a request and send a response.
|
void |
listLinks(org.simpleframework.http.Request request,
org.simpleframework.http.Response response)
List links given a request and send a response.
|
protected cc.clayman.console.AbstractRestRequestHandler |
notFound(org.simpleframework.http.Response arg0,
java.lang.String arg1) |
void |
setLinkAttributes(org.simpleframework.http.Request request,
org.simpleframework.http.Response response)
Set the attributes on a link given a request and send a response.
|
getManagementConsole, getPattern, hashCode, leadin, setManagementConsole, setPattern
public boolean handle(org.simpleframework.http.Request request, org.simpleframework.http.Response response)
handle
in interface cc.clayman.console.RequestHandler
handle
in class cc.clayman.console.BasicRequestHandler
public void createLink(org.simpleframework.http.Request request, org.simpleframework.http.Response response) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
public void deleteLink(org.simpleframework.http.Request request, org.simpleframework.http.Response response) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
public void setLinkAttributes(org.simpleframework.http.Request request, org.simpleframework.http.Response response) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
public void listLinks(org.simpleframework.http.Request request, org.simpleframework.http.Response response) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
public void getLinkInfo(org.simpleframework.http.Request request, org.simpleframework.http.Response response) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
protected cc.clayman.console.AbstractRestRequestHandler badRequest(org.simpleframework.http.Response arg0, java.lang.String arg1) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
protected cc.clayman.console.AbstractRestRequestHandler complain(org.simpleframework.http.Response arg0, java.lang.String arg1) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
protected cc.clayman.console.AbstractRestRequestHandler notFound(org.simpleframework.http.Response arg0, java.lang.String arg1) throws java.io.IOException, us.monoid.json.JSONException
java.io.IOException
us.monoid.json.JSONException
User Space Routing 0.10.3