|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | POINTCUT | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | POINTCUT | CONSTRUCTOR | METHOD |
java.lang.Object | +--org.apache.cactus.client.HttpClientHelper
Helper class to open an HTTP connection to the server redirector and pass to it HTTP parameters, Cookies and HTTP headers.
Constructor Summary | |
HttpClientHelper(String theURL)
|
Method Summary | |
HttpURLConnection |
connect(WebRequest theRequest)
Connects to the Cactus Redirector using HTTP. Affected by: LogAspect |
static String |
getDomain(WebRequest theRequest,
URLConnection theConnection)
Returns the domain that will be used to send the cookies. Affected by: LogAspect |
static String |
getPath(WebRequest theRequest,
URLConnection theConnection)
Returns the path that will be used to validate if a cookie will be sent or not. Affected by: LogAspect |
static int |
getPort(WebRequest theRequest,
URLConnection theConnection)
Returns the domain that will be used to send the cookies. Affected by: LogAspect |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HttpClientHelper(String theURL)
theURL
- the URL that will be used for the HTTP connection.
Method Detail |
public HttpURLConnection connect(WebRequest theRequest) throws java.lang.Throwable
theRequest
- the request containing all data to pass to the
server redirector.
Throwable
- Throwable if an unexpected error occured
around() in LogAspect
.public static String getDomain(WebRequest theRequest, URLConnection theConnection)
setURL()
then the domain will be
this host. Otherwise it will be the redirector host.
theRequest
- the request containing all data to pass to the server
redirector.
theConnection
- the HTTP connection
around() in LogAspect
.public static String getPath(WebRequest theRequest, URLConnection theConnection)
setURL()
has been called, return the path it has been
set to (context + servletPath + pathInfo). Otherwise return the
redirector path.
theRequest
- the request containing all data to pass to the server
redirector.
theConnection
- the HTTP connection
around() in LogAspect
.public static int getPort(WebRequest theRequest, URLConnection theConnection)
setURL()
then the domain will be
this host. Otherwise it will be the redirector host.
theRequest
- the request containing all data to pass to the server
redirector.
theConnection
- the HTTP connection
around() in LogAspect
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | CONSTRUCTOR | METHOD |