public class HttpClient
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.net.HttpURLConnection |
connection |
protected java.lang.String |
cookie |
static java.lang.String |
JSESSSIONID |
protected int |
responseCode |
static java.lang.String |
REVISION |
static java.lang.String |
SET_COOKIE |
Constructor and Description |
---|
HttpClient() |
Modifier and Type | Method and Description |
---|---|
boolean |
connect(java.lang.String url)
Initialise a Connection to a given URL
|
java.lang.String |
getContents(java.lang.String url)
Connect, get the content and disconnect.
|
java.lang.String |
readCookie()
Return the value of the cookie
|
public static final java.lang.String REVISION
public static final java.lang.String SET_COOKIE
public static final java.lang.String JSESSSIONID
protected java.net.HttpURLConnection connection
protected java.lang.String cookie
protected int responseCode
public boolean connect(java.lang.String url)
url
- public java.lang.String getContents(java.lang.String url)
url
- public java.lang.String readCookie() throws java.io.IOException
java.io.IOException
Copyright © 2001-2017 Jalios SA. All Rights Reserved.