public abstract class WebScriptRequestURLImpl extends WebScriptRequestImpl
| Modifier and Type | Field and Description |
|---|---|
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 |
logger, MULTIPART_FORM_DATA| Constructor and Description |
|---|
WebScriptRequestURLImpl(Runtime runtime,
String[] scriptUrlParts,
Match serviceMatch)
Construct
|
WebScriptRequestURLImpl(Runtime runtime,
String scriptUrl,
Match serviceMatch)
Construct
Note: It's assumed scriptUrl contains context path
|
| Modifier and Type | Method and Description |
|---|---|
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(String scriptUrl)
Splits a Web Script Url into its component parts
|
static String[] |
splitURL(String context,
String scriptUrl)
Splits a Web Script Url into its component parts
|
String |
toString() |
forceSuccessStatus, getContentType, getExtensionPath, getFormat, getFormatStyle, getJSONCallback, getRuntime, isGuest, parseContentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAgent, getContent, getHeader, getHeaderNames, getHeaderValues, getServerPathprotected String contextPath
protected String servletPath
protected String pathInfo
protected String queryString
protected Match serviceMatch
public WebScriptRequestURLImpl(Runtime runtime, String scriptUrl, Match serviceMatch)
runtime - RuntimescriptUrl - StringserviceMatch - Matchpublic static String[] splitURL(String scriptUrl)
scriptUrl - url e.g. /alfresco/service/mytasks?f=1public static String[] splitURL(String context, String scriptUrl)
context - context path (can be empty string but never null)scriptUrl - url e.g. /alfresco/service/mytasks?f=1public Match getServiceMatch()
WebScriptRequestpublic String getContextPath()
WebScriptRequestpublic String getServiceContextPath()
WebScriptRequestpublic String getServicePath()
WebScriptRequestpublic String getURL()
WebScriptRequestpublic String getPathInfo()
WebScriptRequestpublic String getQueryString()
WebScriptRequestpublic String[] getParameterNames()
WebScriptRequestpublic String getParameter(String name)
WebScriptRequestname - parameter namepublic String[] getParameterValues(String name)
WebScriptRequestname - parameter nameCopyright © 2005–2019 Alfresco Software. All rights reserved.