|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.WebScriptRequestImpl org.springframework.extensions.webscripts.WebScriptRequestURLImpl
public abstract class WebScriptRequestURLImpl
Web Script Request implementation that acts upon a string representation of a URL
Field Summary | |
---|---|
protected String |
contextPath
Script Url components |
protected String |
pathInfo
|
protected Map<String,String> |
queryArgs
|
protected Map<String,List<String>> |
queryArgsMulti
|
protected String |
queryString
|
protected Match |
serviceMatch
Service bound to this request |
protected String |
servletPath
|
Fields inherited from class org.springframework.extensions.webscripts.WebScriptRequestImpl |
---|
logger |
Constructor Summary | |
---|---|
WebScriptRequestURLImpl(Runtime runtime,
String[] scriptUrlParts,
Match serviceMatch)
Construct |
|
WebScriptRequestURLImpl(Runtime runtime,
String scriptUrl,
Match serviceMatch)
Construct Note: It's assumed scriptUrl contains context path |
Method Summary | |
---|---|
String |
getContextPath()
Gets the Alfresco Context Path |
String |
getParameter(String name)
Gets the value of the named parameter |
String[] |
getParameterNames()
Gets the names of all parameters on the Url |
String[] |
getParameterValues(String name)
Gets the (array) value of the named parameter Note: An array of one item is returned when a "single value" named parameter is requested |
String |
getPathInfo()
Gets the service specific path |
String |
getQueryString()
Gets the query String |
String |
getServiceContextPath()
Gets the Alfresco Web Script Context Path |
Match |
getServiceMatch()
Gets the matching API Service for this request |
String |
getServicePath()
Gets the Alfresco Service Path |
String |
getURL()
Gets the full request URL |
static String[] |
splitURL(boolean context,
String scriptUrl)
Splits a Web Script Url into its component parts |
static String[] |
splitURL(String scriptUrl)
Splits a Web Script Url into its component parts |
String |
toString()
|
Methods inherited from class org.springframework.extensions.webscripts.WebScriptRequestImpl |
---|
forceSuccessStatus, getContentType, getExtensionPath, getFormat, getFormatStyle, getJSONCallback, getRuntime, isGuest, parseContent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.springframework.extensions.webscripts.WebScriptRequest |
---|
getAgent, getContent, getHeader, getHeaderNames, getHeaderValues, getServerPath |
Field Detail |
---|
protected String contextPath
protected String servletPath
protected String pathInfo
protected String queryString
protected Map<String,String> queryArgs
protected Map<String,List<String>> queryArgsMulti
protected Match serviceMatch
Constructor Detail |
---|
public WebScriptRequestURLImpl(Runtime runtime, String scriptUrl, Match serviceMatch)
scriptUrl
- serviceMatch
- public WebScriptRequestURLImpl(Runtime runtime, String[] scriptUrlParts, Match serviceMatch)
scriptUrlParts
- serviceMatch
- Method Detail |
---|
public static String[] splitURL(String scriptUrl)
scriptUrl
- url e.g. /alfresco/service/mytasks?f=1
public static String[] splitURL(boolean context, String scriptUrl)
context
- true => context path is included in scriptUrlscriptUrl
- url e.g. /alfresco/service/mytasks?f=1
public String toString()
toString
in class Object
public Match getServiceMatch()
WebScriptRequest
public String getContextPath()
WebScriptRequest
public String getServiceContextPath()
WebScriptRequest
public String getServicePath()
WebScriptRequest
public String getURL()
WebScriptRequest
public String getPathInfo()
WebScriptRequest
public String getQueryString()
WebScriptRequest
public String[] getParameterNames()
WebScriptRequest
public String getParameter(String name)
WebScriptRequest
name
- parameter name
public String[] getParameterValues(String name)
WebScriptRequest
name
- parameter name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |