public class Dispatcher extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
METHOD_DELETE |
static String |
METHOD_GET |
static String |
METHOD_POST |
static String |
METHOD_PUT |
Constructor and Description |
---|
Dispatcher() |
Dispatcher(boolean caseSensitive) |
Modifier and Type | Method and Description |
---|---|
void |
addResource(String resource,
String httpMethod,
Class<?> clazz,
String classmethod)
Connects a resource and HTTP method with a class and a class method.
|
boolean |
dispatch(String resource,
String httpMethod,
org.apache.chemistry.opencmis.commons.server.CallContext context,
org.apache.chemistry.opencmis.commons.server.CmisService service,
String repositoryId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Find the appropriate method an call it.
|
public static final String METHOD_GET
public static final String METHOD_POST
public static final String METHOD_PUT
public static final String METHOD_DELETE
public Dispatcher()
public Dispatcher(boolean caseSensitive)
public void addResource(String resource, String httpMethod, Class<?> clazz, String classmethod) throws NoSuchMethodException
NoSuchMethodException
public boolean dispatch(String resource, String httpMethod, org.apache.chemistry.opencmis.commons.server.CallContext context, org.apache.chemistry.opencmis.commons.server.CmisService service, String repositoryId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
true
if the method was found,
false
otherwise.Copyright © 2018 City of Paris. All rights reserved.