org.apache.chemistry.opencmis.server.shared
Class Dispatcher
java.lang.Object
org.apache.chemistry.opencmis.server.shared.Dispatcher
- All Implemented Interfaces:
- java.io.Serializable
public class Dispatcher
- extends java.lang.Object
- implements java.io.Serializable
Dispatcher for the AtomPub and Browser binding servlet.
- See Also:
- Serialized Form
Method Summary |
void |
addResource(java.lang.String resource,
java.lang.String httpMethod,
java.lang.Class<?> clazz,
java.lang.String classmethod)
Connects a resource and HTTP method with a class and a class method. |
boolean |
dispatch(java.lang.String resource,
java.lang.String httpMethod,
CallContext context,
CmisService service,
java.lang.String repositoryId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Find the appropriate method an call it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
METHOD_GET
public static final java.lang.String METHOD_GET
- See Also:
- Constant Field Values
METHOD_POST
public static final java.lang.String METHOD_POST
- See Also:
- Constant Field Values
METHOD_PUT
public static final java.lang.String METHOD_PUT
- See Also:
- Constant Field Values
METHOD_DELETE
public static final java.lang.String METHOD_DELETE
- See Also:
- Constant Field Values
Dispatcher
public Dispatcher()
addResource
public void addResource(java.lang.String resource,
java.lang.String httpMethod,
java.lang.Class<?> clazz,
java.lang.String classmethod)
throws java.lang.NoSuchMethodException
- Connects a resource and HTTP method with a class and a class method.
- Throws:
java.lang.NoSuchMethodException
dispatch
public boolean dispatch(java.lang.String resource,
java.lang.String httpMethod,
CallContext context,
CmisService service,
java.lang.String repositoryId,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- Find the appropriate method an call it.
- Returns:
true
if the method was found, false
otherwise.
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.