|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.apache.commons.latka.http.SessionImpl
An implementation of a Latka Session interface based on the Jakarta Commons HttpClient package.
| Constructor Summary | |
SessionImpl()
|
|
| Method Summary | |
void |
addCookie(java.lang.String domain,
java.lang.String path,
java.lang.String name,
java.lang.String value)
Adds a cookie to all HTTP requests whose domain and path match (according to RFC2109). |
Request |
createRequest(java.lang.String label,
java.net.URL url,
int httpMethod,
boolean followRedirects)
Creates a request object with the specified URL and HTTP Method. |
Request |
createRequest(java.net.URL url,
int httpMethod)
Creates a request object with the specified URL and HTTP Method. |
java.lang.String |
getCookieValue(java.lang.String name)
Returns the value of cookie name. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SessionImpl()
| Method Detail |
public void addCookie(java.lang.String domain,
java.lang.String path,
java.lang.String name,
java.lang.String value)
addCookie in interface Sessiondomain - the domain to which the cookie should applypath - the path to which the cookie should applyname - the name of the cookievalue - the value of the cookie
public Request createRequest(java.lang.String label,
java.net.URL url,
int httpMethod,
boolean followRedirects)
createRequest in interface Sessionlabel - Name of the requesturl - The URL to request of the HTTP server.httpMethod - An integer representing the HTTP method (e.g. GET, PUT) used to communicate with server.
Request object representing the url and httpMethodRequest.HTTP_METHOD_GET,
Request.HTTP_METHOD_POST
public Request createRequest(java.net.URL url,
int httpMethod)
createRequest in interface Sessionurl - The URL to request of the HTTP server.httpMethod - An integer representing the HTTP method (e.g. GET, PUT) used to communicate with server.
Request object representing the url and httpMethodRequest.HTTP_METHOD_GET,
Request.HTTP_METHOD_POSTpublic java.lang.String getCookieValue(java.lang.String name)
name.
getCookieValue in interface Sessionname - the name of the cookie
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||