|
Restlet Framework 2.2.3 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.Restlet
org.restlet.routing.Filter
org.restlet.ext.json.JsonpFilter
public class JsonpFilter
Filter that converts response entity of the JSON media type into a JSONP
callback document. Make sure that you properly pass a "callback" query
parameter in the URI query string with the name of your JavaScrip callback
method.
See JsonpRepresentation
for the actual wrapper representation used
internally.
Field Summary |
---|
Fields inherited from class org.restlet.routing.Filter |
---|
CONTINUE, SKIP, STOP |
Constructor Summary | |
---|---|
JsonpFilter(Context context)
Constructor. |
Method Summary | |
---|---|
void |
afterHandle(Request request,
Response response)
Assumes that there is a "callback" query parameter available in the URI query string, containing the name of the JavaScript callback method. |
Methods inherited from class org.restlet.routing.Filter |
---|
beforeHandle, doHandle, getNext, handle, hasNext, setNext, setNext, start, stop |
Methods inherited from class org.restlet.Restlet |
---|
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setContext, setDescription, setFinderClass, setName, setOwner |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsonpFilter(Context context)
context
- The context.Method Detail |
---|
public void afterHandle(Request request, Response response)
afterHandle
in class Filter
|
Restlet Framework 2.2.3 Android |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |