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, setCmisVersion
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class AbstractCmisHttpServlet
javax.servlet.ServletException
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected 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-2014 The Apache Software Foundation. All Rights Reserved.