|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | POINTCUT | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | POINTCUT | CONSTRUCTOR | METHOD |
java.lang.Object | +--org.apache.cactus.ServletURL
Simulate an HTTP URL by breaking it into its different parts :
From the Servlet 2.2 specification :
URL = "http://" + serverName (including port) + requestURI ? queryString
requestURI = contextPath + servletPath + pathInfo
Field Summary | |
static String |
PROTOCOL_HTTP
Http protocol. |
static String |
PROTOCOL_HTTPS
Https protocol. |
static String |
URL_CONTEXT_PATH_PARAM
Name of the parameter in the HTTP request that represents the context path in the URL to simulate. |
static String |
URL_PATH_INFO_PARAM
Name of the parameter in the HTTP request that represents the Path Info in the URL to simulate. |
static String |
URL_PROTOCOL_PARAM
Name of the parameter in the HTTP request that represents the protocol (HTTP, HTTPS, etc) in the URL to simulate. |
static String |
URL_QUERY_STRING_PARAM
Name of the parameter in the HTTP request that represents the Query String in the URL to simulate. |
static String |
URL_SERVER_NAME_PARAM
Name of the parameter in the HTTP request that represents the Server name (+ port) in the URL to simulate. |
static String |
URL_SERVLET_PATH_PARAM
Name of the parameter in the HTTP request that represents the Servlet Path in the URL to simulate. |
Constructor Summary | |
ServletURL()
|
|
ServletURL(String theProtocol,
String theServerName,
String theContextPath,
String theServletPath,
String thePathInfo,
String theQueryString)
|
|
ServletURL(String theServerName,
String theContextPath,
String theServletPath,
String thePathInfo,
String theQueryString)
|
Method Summary | |
String |
getContextPath()
|
String |
getHost()
|
String |
getPath()
|
String |
getPathInfo()
|
int |
getPort()
|
String |
getProtocol()
|
String |
getQueryString()
|
String |
getServerName()
|
String |
getServletPath()
|
static ServletURL |
loadFromRequest(HttpServletRequest theRequest)
Affected by: LogAspect |
void |
saveToRequest(WebRequest theRequest)
Affected by: LogAspect |
void |
setContextPath(String theContextPath)
Affected by: LogAspect |
void |
setPathInfo(String thePathInfo)
Affected by: LogAspect |
void |
setProtocol(String theProtocol)
Affected by: LogAspect |
void |
setQueryString(String theQueryString)
Affected by: LogAspect |
void |
setServerName(String theServerName)
Affected by: LogAspect |
void |
setServletPath(String theServletPath)
Affected by: LogAspect |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String PROTOCOL_HTTP
public static final String PROTOCOL_HTTPS
public static final String URL_CONTEXT_PATH_PARAM
public static final String URL_PATH_INFO_PARAM
public static final String URL_PROTOCOL_PARAM
public static final String URL_QUERY_STRING_PARAM
public static final String URL_SERVER_NAME_PARAM
public static final String URL_SERVLET_PATH_PARAM
Constructor Detail |
public ServletURL()
public ServletURL(String theProtocol, String theServerName, String theContextPath, String theServletPath, String thePathInfo, String theQueryString)
public ServletURL(String theServerName, String theContextPath, String theServletPath, String thePathInfo, String theQueryString)
Method Detail |
public String getContextPath()
public String getHost()
public String getPath()
public String getPathInfo()
public int getPort()
public String getProtocol()
public String getQueryString()
public String getServerName()
public String getServletPath()
public static ServletURL loadFromRequest(HttpServletRequest theRequest)
around() in LogAspect
.public void saveToRequest(WebRequest theRequest)
around() in LogAspect
.public void setContextPath(String theContextPath)
around() in LogAspect
.public void setPathInfo(String thePathInfo)
around() in LogAspect
.public void setProtocol(String theProtocol)
around() in LogAspect
.public void setQueryString(String theQueryString)
around() in LogAspect
.public void setServerName(String theServerName)
around() in LogAspect
.public void setServletPath(String theServletPath)
around() in LogAspect
.public String toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | CONSTRUCTOR | METHOD |