public abstract class AbstractBindingCmisServiceWrapper extends AbstractCmisServiceWrapper
ProgressControlCmisService.Progress
Constructor and Description |
---|
AbstractBindingCmisServiceWrapper(CmisService service) |
Modifier and Type | Method and Description |
---|---|
ProgressControlCmisService.Progress |
afterServiceCall()
Called by the server framework after the requested service method has
been called.
|
ProgressControlCmisService.Progress |
beforeServiceCall()
Called by the server framework before the requested service method is
called.
|
BindingType |
getBindingType()
Returns the binding type.
|
Date |
getDateRequestHeader(String name)
Gets a request header value as Date.
|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Returns the
HttpServletRequest object. |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Returns the
HttpServletResponse object. |
String |
getRequestHeader(String name)
Gets a request header value as String.
|
boolean |
isNotModified(Date date)
Compares the provided date with the "If-Modified-Since" HTTP header (if
present) and returns whether the resource has been modified or not.
|
void |
setAfterServiceCall(ProgressControlCmisService.Progress progress)
Sets whether the server framework should continue after the service is
called.
|
void |
setBeforeServiceCall(ProgressControlCmisService.Progress progress)
Sets whether the server framework should continue before the service is
called.
|
void |
setResponseHeader(String name,
Date value)
Sets a Date response header.
|
void |
setResponseHeader(String name,
String value)
Sets a String response header.
|
addObjectToFolder, appendContentStream, applyAcl, applyAcl, applyPolicy, bulkUpdateProperties, cancelCheckOut, checkIn, checkOut, close, create, createDocument, createDocumentFromSource, createFolder, createItem, createPolicy, createRelationship, createType, deleteContentStream, deleteObject, deleteObjectOrCancelCheckOut, deleteTree, deleteType, getAcl, getAllowableActions, getAllVersions, getAppliedPolicies, getCallContext, getCheckedOutDocs, getChildren, getContentChanges, getContentStream, getDescendants, getFolderParent, getFolderTree, getObject, getObjectByPath, getObjectInfo, getObjectOfLatestVersion, getObjectParents, getObjectRelationships, getProperties, getPropertiesOfLatestVersion, getRenditions, getRepositoryInfo, getRepositoryInfos, getTypeChildren, getTypeDefinition, getTypeDescendants, getWrappedService, initialize, moveObject, query, removeObjectFromFolder, removePolicy, setCallContext, setContentStream, updateProperties, updateType
public AbstractBindingCmisServiceWrapper(CmisService service)
public ProgressControlCmisService.Progress beforeServiceCall()
ProgressControlCmisService
beforeServiceCall
in interface ProgressControlCmisService
beforeServiceCall
in class AbstractCmisServiceWrapper
ProgressControlCmisService.Progress.CONTINUE
if the server framework should continue
processing the request, ProgressControlCmisService.Progress.STOP
id the server
framework should stoppublic ProgressControlCmisService.Progress afterServiceCall()
ProgressControlCmisService
afterServiceCall
in interface ProgressControlCmisService
afterServiceCall
in class AbstractCmisServiceWrapper
ProgressControlCmisService.Progress.CONTINUE
if the server framework should continue
processing the request, ProgressControlCmisService.Progress.STOP
id the server
framework should stoppublic void setBeforeServiceCall(ProgressControlCmisService.Progress progress)
progress
- Progress#CONTINUE
if the server framework should
continue, Progress#STOP
if the server framework should
stoppublic void setAfterServiceCall(ProgressControlCmisService.Progress progress)
progress
- Progress#CONTINUE
if the server framework should
continue, Progress#STOP
if the server framework should
stoppublic BindingType getBindingType()
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
HttpServletRequest
object.HttpServletRequest
object or null
if the
binding is a non-HTTP bindingpublic javax.servlet.http.HttpServletResponse getHttpServletResponse()
HttpServletResponse
object.HttpServletResponse
object or null
if the
binding is a non-HTTP bindingpublic String getRequestHeader(String name)
name
- the header namenull
if the header isn't set or if
the binding is a non-HTTP bindingpublic Date getDateRequestHeader(String name)
name
- the header namenull
if the header isn't set or if
the binding is a non-HTTP binding or if the date cannot be parsedpublic void setResponseHeader(String name, String value)
name
- the header namevalue
- the header valuepublic void setResponseHeader(String name, Date value)
name
- the header namevalue
- the header valuepublic boolean isNotModified(Date date)
date
- date to compare the "If-Modified-Since" HTTP header totrue
if the "If-Modified-Since" HTTP header is set and ,
false
otherwiseCopyright © 2009–2017 The Apache Software Foundation. All rights reserved.