|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
A Latka Session is a container that manages state information over 1+ HTTP request/response pairs over 1+ HTTP servers.
| 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)
|
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. |
| Method Detail |
public void addCookie(java.lang.String domain,
java.lang.String path,
java.lang.String name,
java.lang.String value)
domain - 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)
public Request createRequest(java.net.URL url,
int httpMethod)
url - 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.
name - the name of the cookie
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||