public class Dispatcher extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
BASE_URL_ATTRIBUTE |
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,
CallContext context,
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 BASE_URL_ATTRIBUTE
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, CallContext context, CmisService service, String repositoryId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
true
if the method was found, false
otherwise.Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.