|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.rest.ResourceDispatcher
public class ResourceDispatcher
Created by The eXo Platform SAS.
ResourceDispatcher finds
ResourceContainer with can serve the Request and calls method it.
| Nested Class Summary | |
|---|---|
class |
ResourceDispatcher.Context
Keep runtime context and later it can be used for getting some runtime information in ResourceContainer. |
| Field Summary | |
|---|---|
static String |
CONTEXT_PARAM_ABSLOCATION
Context parameter 'absLocation'. |
static String |
CONTEXT_PARAM_BASE_URI
Context parameter 'baseURI'. |
static String |
CONTEXT_PARAM_HOST
Context parameter 'host'. |
static String |
CONTEXT_PARAM_REL_URI
Context parameter 'relURI'. |
| Constructor Summary | |
|---|---|
ResourceDispatcher(org.exoplatform.container.xml.InitParams params,
ResourceBinder binder,
EntityTransformerFactory factory)
Constructor gets all binded ResourceContainers from ResourceBinder. |
|
| Method Summary | |
|---|---|
void |
addContextParameter(String key,
String value)
Add new Context parameter. |
Response |
dispatch(Request request)
Dispatches Request to method of ResourceContainer. |
ResourceDispatcher.Context |
getRuntimeContext()
Deprecated. Instead of directly use Context should be user
@ContextParam. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONTEXT_PARAM_HOST
public static final String CONTEXT_PARAM_BASE_URI
public static final String CONTEXT_PARAM_REL_URI
public static final String CONTEXT_PARAM_ABSLOCATION
| Constructor Detail |
|---|
public ResourceDispatcher(org.exoplatform.container.xml.InitParams params,
ResourceBinder binder,
EntityTransformerFactory factory)
throws Exception
params - the initialized parameters for ResourceDispatcher.binder - the ResourceBinder component.factory - the EntityTransformerFactory component.
Exception - any Exception.| Method Detail |
|---|
public Response dispatch(Request request)
throws Exception
request - REST request.
Exception - any Exception.@Deprecated public ResourceDispatcher.Context getRuntimeContext()
Context should be user
@ContextParam.
public void addContextParameter(String key,
String value)
key - the key.value - the value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||