public abstract class AbstractCmisHttpServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_CALL_CONTEXT_HANDLER |
static String |
PARAM_CMIS_VERSION |
| Constructor and Description |
|---|
AbstractCmisHttpServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCsrfToken(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
boolean isRepositoryInfoRequest,
boolean isContentRequest)
Checks the CSRF if configured.
|
protected CallContext |
createContext(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
TempStoreOutputStreamFactory streamFactory)
Creates a
CallContext object from a servlet request. |
protected static String |
createLogMessage(Throwable t,
javax.servlet.http.HttpServletRequest request) |
protected CallContextHandler |
getCallContextHandler()
Return the
CallContextHandler |
protected CmisVersion |
getCmisVersion()
Returns the CMIS version configured for this servlet.
|
protected CmisServiceFactory |
getServiceFactory()
Returns the
CmisServiceFactory. |
void |
init(javax.servlet.ServletConfig config) |
static CallContextHandler |
loadCallContextHandler(javax.servlet.ServletConfig config)
Loads a
CallContextHandler if it is configured in for this
servlet. |
protected void |
setBinding(String binding)
Sets the binding.
|
protected void |
setCmisVersion(CmisVersion cmisVersion) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic static final String PARAM_CALL_CONTEXT_HANDLER
public static final String PARAM_CMIS_VERSION
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic static CallContextHandler loadCallContextHandler(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
CallContextHandler if it is configured in for this
servlet.javax.servlet.ServletExceptionprotected void setBinding(String binding)
protected CmisVersion getCmisVersion()
protected void setCmisVersion(CmisVersion cmisVersion)
protected CmisServiceFactory getServiceFactory()
CmisServiceFactory.protected CallContextHandler getCallContextHandler()
CallContextHandlerprotected void checkCsrfToken(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
boolean isRepositoryInfoRequest,
boolean isContentRequest)
CmisPermissionDeniedException if something is wrong.protected CallContext createContext(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, TempStoreOutputStreamFactory streamFactory)
CallContext object from a servlet request.Copyright © 2009–2016 The Apache Software Foundation. All rights reserved.