public class CmisBrowserBindingServlet extends AbstractCmisHttpServlet
| Modifier and Type | Class and Description |
|---|---|
static class |
CmisBrowserBindingServlet.CallUrl |
PARAM_CALL_CONTEXT_HANDLER, PARAM_CMIS_VERSION| Constructor and Description |
|---|
CmisBrowserBindingServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRepositoryResource(String resource,
String httpMethod,
ServiceCall serviceCall)
Registers a new repository resource.
|
protected void |
addRootResource(String resource,
String httpMethod,
ServiceCall serviceCall)
Registers a new root resource.
|
protected int |
getErrorCode(CmisBaseException ex)
Translates an exception in an appropriate HTTP error code.
|
void |
init(javax.servlet.ServletConfig config) |
protected void |
printError(CallContext context,
Exception ex,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Prints an error as JSON.
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
createContext, getCallContextHandler, getCmisVersion, getServiceFactory, getThresholdOutputStreamFactory, setBinding, setCmisVersiondoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class AbstractCmisHttpServletjavax.servlet.ServletExceptionprotected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void addRepositoryResource(String resource, String httpMethod, ServiceCall serviceCall)
protected void addRootResource(String resource, String httpMethod, ServiceCall serviceCall)
protected int getErrorCode(CmisBaseException ex)
protected void printError(CallContext context, Exception ex, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.