Package org.alfresco.mock.test.ws
Class MockWebScriptRequest
- java.lang.Object
-
- org.alfresco.mock.test.ws.MockWebScriptRequest
-
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScriptRequest
public class MockWebScriptRequest extends Object implements org.springframework.extensions.webscripts.WebScriptRequest
-
-
Constructor Summary
Constructors Constructor Description MockWebScriptRequest(String format, org.springframework.extensions.webscripts.servlet.FormData.FormField[] fields, org.springframework.extensions.webscripts.WebScript webScript, Map<String,Serializable> requestFields, org.alfresco.service.ServiceRegistry serviceRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanforceSuccessStatus()StringgetAgent()org.springframework.extensions.surf.util.ContentgetContent()StringgetContentType()StringgetContextPath()StringgetExtensionPath()StringgetFormat()org.springframework.extensions.webscripts.Description.FormatStylegetFormatStyle()StringgetHeader(String name)String[]getHeaderNames()String[]getHeaderValues(String name)StringgetJSONCallback()StringgetParameter(String name)String[]getParameterNames()String[]getParameterValues(String name)StringgetPathInfo()StringgetQueryString()org.springframework.extensions.webscripts.RuntimegetRuntime()StringgetServerPath()StringgetServiceContextPath()org.springframework.extensions.webscripts.MatchgetServiceMatch()StringgetServicePath()StringgetURL()booleanisGuest()ObjectparseContent()
-
-
-
Constructor Detail
-
MockWebScriptRequest
public MockWebScriptRequest(String format, org.springframework.extensions.webscripts.servlet.FormData.FormField[] fields, org.springframework.extensions.webscripts.WebScript webScript, Map<String,Serializable> requestFields, org.alfresco.service.ServiceRegistry serviceRegistry)
-
-
Method Detail
-
getServiceMatch
public org.springframework.extensions.webscripts.Match getServiceMatch()
- Specified by:
getServiceMatchin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getServerPath
public String getServerPath()
- Specified by:
getServerPathin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getContextPath
public String getContextPath()
- Specified by:
getContextPathin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getServiceContextPath
public String getServiceContextPath()
- Specified by:
getServiceContextPathin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getServicePath
public String getServicePath()
- Specified by:
getServicePathin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getURL
public String getURL()
- Specified by:
getURLin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getPathInfo
public String getPathInfo()
- Specified by:
getPathInfoin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getQueryString
public String getQueryString()
- Specified by:
getQueryStringin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getParameterNames
public String[] getParameterNames()
- Specified by:
getParameterNamesin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getParameter
public String getParameter(String name)
- Specified by:
getParameterin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getParameterValues
public String[] getParameterValues(String name)
- Specified by:
getParameterValuesin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getHeaderNames
public String[] getHeaderNames()
- Specified by:
getHeaderNamesin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getHeader
public String getHeader(String name)
- Specified by:
getHeaderin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getHeaderValues
public String[] getHeaderValues(String name)
- Specified by:
getHeaderValuesin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getExtensionPath
public String getExtensionPath()
- Specified by:
getExtensionPathin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getContent
public org.springframework.extensions.surf.util.Content getContent()
- Specified by:
getContentin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
parseContent
public Object parseContent()
- Specified by:
parseContentin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
isGuest
public boolean isGuest()
- Specified by:
isGuestin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getFormat
public String getFormat()
- Specified by:
getFormatin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getFormatStyle
public org.springframework.extensions.webscripts.Description.FormatStyle getFormatStyle()
- Specified by:
getFormatStylein interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getAgent
public String getAgent()
- Specified by:
getAgentin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getJSONCallback
public String getJSONCallback()
- Specified by:
getJSONCallbackin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
forceSuccessStatus
public boolean forceSuccessStatus()
- Specified by:
forceSuccessStatusin interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
getRuntime
public org.springframework.extensions.webscripts.Runtime getRuntime()
- Specified by:
getRuntimein interfaceorg.springframework.extensions.webscripts.WebScriptRequest
-
-