public abstract class AbstractCmisProxyServlet extends HttpServlet
This servlet forwards CMIS requests to the SAP Cloud Platform document service.
Usage:
getRepositoryUniqueName() and
getRepositoryKey().init(ServletConfig) method, make sure you call
super.init(ServletConfig). However make sure to NOT modify the servlet's paths/uris/context,
otherwise the AbstractCmisProxyServlet won't work correctly.
For samples, check https://help.sap.com/viewer/b0cc1109d03c4dc299c215871eed8c42/Cloud/en-US/ed1c6732d4214c68846ab9813b9df943.html
| Constructor and Description |
|---|
AbstractCmisProxyServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
authenticate(HttpServletRequest request,
HttpServletResponse response)
Checks the user or the credentials that are included in the request.
|
protected int |
getConnectTimeout()
Returns the connect timeout in milliseconds.
|
protected String |
getDestinationName()
Returns the destination name.
|
protected int |
getReadTimeout()
Returns the read timeout in milliseconds.
|
protected abstract String |
getRepositoryKey()
Returns the repository key.
|
protected abstract String |
getRepositoryUniqueName()
Returns the repository unique name.
|
void |
init(ServletConfig config) |
protected boolean |
readOnlyMode()
Indicates if the proxy should only forward read-only Browser binding requests.
|
protected boolean |
requireAuthentication()
Indicates if the request must be authenticated.
|
protected void |
service(HttpServletRequest request,
HttpServletResponse response) |
protected boolean |
supportAtomPubBinding()
Indicates if the CMIS AtomPub Binding should be exposed.
|
protected boolean |
supportBrowserBinding()
Indicates if the CMIS Browser Binding should be exposed.
|
protected boolean |
supportCMIS_1_0()
Indicates if the CMIS 1.0 endpoints should be exposed.
|
protected boolean |
supportCMIS_1_1()
Indicates if the CMIS 1.1 endpoints should be exposed.
|
protected boolean |
supportWebServicesBinding()
Indicates if the CMIS Web Services Binding should be exposed.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicedestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logpublic void init(ServletConfig config) throws ServletException
init in interface Servletinit in class GenericServletServletExceptionprotected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
service in class HttpServletServletExceptionIOExceptionprotected String getDestinationName()
nullnull for the default destination.protected abstract String getRepositoryUniqueName()
protected abstract String getRepositoryKey()
null.protected boolean supportWebServicesBinding()
truetrue if the CMIS Web Services Binding should be exposed,
false otherwiseprotected boolean supportAtomPubBinding()
truetrue if the CMIS AtomPub Binding should be exposed, false
otherwiseprotected boolean supportBrowserBinding()
truetrue if the CMIS Browser Binding should be exposed, false
otherwiseprotected boolean supportCMIS_1_0()
truetrue if CMIS 1.0 endpoints should be exposed, false otherwiseprotected boolean supportCMIS_1_1()
truetrue if CMIS 1.1 endpoints should be exposed, false otherwiseprotected boolean requireAuthentication()
true, the method
authenticate(HttpServletRequest, HttpServletResponse) is called to handle the
authentication of the user.
Default: truetrue if user authentication is required, false if anonymous
access should be grantedprotected String authenticate(HttpServletRequest request, HttpServletResponse response) throws LoginException
request - the HTTP request objectresponse - the HTTP response objectnull for anonymous loginLoginException - if the authentication failedprotected boolean readOnlyMode()
falsetrue if only read-only request should be forwarded, false for
full accessprotected int getConnectTimeout()
protected int getReadTimeout()
Copyright © 2025 SAP. All rights reserved.