public abstract class AbstractMethod extends Object implements VtiMethod
VtiMethod
.Modifier and Type | Field and Description |
---|---|
protected UrlHelper |
urlHelper |
protected MethodHandler |
vtiHandler |
Constructor and Description |
---|
AbstractMethod() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doExecute(VtiFpRequest request,
VtiFpResponse response)
Target method that will be executed in child classes
|
void |
execute(VtiFpRequest request,
VtiFpResponse response)
Executes the vti method
|
protected WebDAVLockService |
getLockService()
Access to the WebDAVLockService.
|
protected static String |
getPathWithoutContext(String alfrescoContext,
HttpServletRequest m_request)
Returns the path, excluding the Servlet Context (if present)
|
UrlHelper |
getUrlHelper() |
MethodHandler |
getVtiHandler() |
protected void |
processDocMetaInfo(DocMetaInfo docMetaInfo,
VtiFpRequest request,
VtiFpResponse response)
Create response for DocMetaInfo
|
void |
setLockService(WebDAVLockService lockService)
Provides instances of this class with the WebDAVLockService.
|
void |
setUrlHelper(UrlHelper urlHelper) |
void |
setVtiHandler(MethodHandler vtiHandler) |
protected MethodHandler vtiHandler
protected UrlHelper urlHelper
public MethodHandler getVtiHandler()
public void setVtiHandler(MethodHandler vtiHandler)
vtiHandler
- the vtiHandler to setpublic UrlHelper getUrlHelper()
public void setUrlHelper(UrlHelper urlHelper)
urlHelper
- the urlHelper to setpublic final void execute(VtiFpRequest request, VtiFpResponse response)
VtiMethod
execute
in interface VtiMethod
request
- HttpServletRequestresponse
- HttpServletResponseVtiMethod.execute(org.alfresco.module.vti.web.fp.VtiFpRequest, org.alfresco.module.vti.web.fp.VtiFpResponse)
protected abstract void doExecute(VtiFpRequest request, VtiFpResponse response) throws VtiMethodException, IOException
request
- Vti Frontpage request (VtiFpRequest
)response
- Vti Frontpage response (VtiFpResponse
)VtiMethodException
IOException
protected void processDocMetaInfo(DocMetaInfo docMetaInfo, VtiFpRequest request, VtiFpResponse response) throws VtiMethodException, IOException
docMetaInfo
- Document Meta Informationrequest
- Vti Frontpage requestresponse
- Vti Frontpage responseVtiMethodException
IOException
protected static String getPathWithoutContext(String alfrescoContext, HttpServletRequest m_request)
WebDAVMethod.getPath()
protected WebDAVLockService getLockService()
public void setLockService(WebDAVLockService lockService)
lockService
- the lockService to setCopyright © 2005–2017 Alfresco Software. All rights reserved.