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,
ServiceCall serviceCall)
Connects a resource and HTTP method with an object that handles the call.
|
boolean |
dispatch(String resource,
String httpMethod,
CallContext context,
CmisService service,
String repositoryId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the a call.
|
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, ServiceCall serviceCall)
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 an object was found that can handle the
request, false
otherwise.Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.