public abstract class AbstractMethod extends Object implements VtiMethod
VtiMethod.| Modifier and Type | Field and Description |
|---|---|
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,
javax.servlet.http.HttpServletRequest m_request)
Returns the path, excluding the Servlet Context (if present)
|
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 |
setVtiHandler(MethodHandler vtiHandler) |
protected MethodHandler vtiHandler
public MethodHandler getVtiHandler()
public void setVtiHandler(MethodHandler vtiHandler)
vtiHandler - the vtiHandler to setpublic final void execute(VtiFpRequest request, VtiFpResponse response)
VtiMethodexecute in interface VtiMethodrequest - 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)VtiMethodExceptionIOExceptionprotected void processDocMetaInfo(DocMetaInfo docMetaInfo, VtiFpRequest request, VtiFpResponse response) throws VtiMethodException, IOException
docMetaInfo - Document Meta Informationrequest - Vti Frontpage requestresponse - Vti Frontpage responseVtiMethodExceptionIOExceptionprotected static String getPathWithoutContext(String alfrescoContext, javax.servlet.http.HttpServletRequest m_request)
WebDAVMethod.getPath()protected WebDAVLockService getLockService()
public void setLockService(WebDAVLockService lockService)
lockService - the lockService to setCopyright © 2005–2014 Alfresco Software. All rights reserved.