|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HTTPUtil
Field Summary | |
---|---|
static short |
ACTION_GET
Field ACTION_GET |
static short |
ACTION_POST
Field ACTION_POST |
static int |
STATUS_OK
Field STATUS_OK |
Method Summary | |
---|---|
String |
decode(String str,
String charset)
translate a url encoded string to a regular string |
org.apache.commons.httpclient.HttpMethod |
delete(URL url,
String username,
String password,
int timeout,
String charset,
String useragent,
String proxyserver,
int proxyport,
String proxyuser,
String proxypassword,
org.apache.commons.httpclient.Header[] headers)
|
String |
encode(String str,
String charset)
translate a string in the URLEncoded Format |
org.apache.commons.httpclient.HttpMethod |
get(URL url,
String username,
String password,
int timeout,
String charset,
String useragent,
String proxyserver,
int proxyport,
String proxyuser,
String proxypassword,
org.apache.commons.httpclient.Header[] headers)
make a http requst to given url |
org.apache.commons.httpclient.HttpMethod |
head(URL url,
String username,
String password,
int timeout,
String charset,
String useragent,
String proxyserver,
int proxyport,
String proxyuser,
String proxypassword,
org.apache.commons.httpclient.Header[] headers)
|
org.apache.commons.httpclient.HttpMethod |
put(URL url,
String username,
String password,
int timeout,
String charset,
String useragent,
String proxyserver,
int proxyport,
String proxyuser,
String proxypassword,
org.apache.commons.httpclient.Header[] headers,
org.apache.commons.httpclient.methods.RequestEntity body)
|
org.apache.commons.httpclient.methods.RequestEntity |
toRequestEntity(Object value)
|
Object |
toURL(org.apache.commons.httpclient.HttpMethod httpMethod)
|
URL |
toURL(String strUrl)
cast a string to a url |
URL |
toURL(String strUrl,
int port)
cast a string to a url |
Field Detail |
---|
static final short ACTION_POST
ACTION_POST
static final short ACTION_GET
ACTION_GET
static final int STATUS_OK
STATUS_OK
Method Detail |
---|
org.apache.commons.httpclient.HttpMethod get(URL url, String username, String password, int timeout, String charset, String useragent, String proxyserver, int proxyport, String proxyuser, String proxypassword, org.apache.commons.httpclient.Header[] headers) throws IOException
url
- username
- password
- timeout
- charset
- useragent
- proxyserver
- proxyport
- proxyuser
- proxypassword
-
IOException
org.apache.commons.httpclient.HttpMethod put(URL url, String username, String password, int timeout, String charset, String useragent, String proxyserver, int proxyport, String proxyuser, String proxypassword, org.apache.commons.httpclient.Header[] headers, org.apache.commons.httpclient.methods.RequestEntity body) throws IOException
IOException
org.apache.commons.httpclient.HttpMethod delete(URL url, String username, String password, int timeout, String charset, String useragent, String proxyserver, int proxyport, String proxyuser, String proxypassword, org.apache.commons.httpclient.Header[] headers) throws IOException
IOException
org.apache.commons.httpclient.HttpMethod head(URL url, String username, String password, int timeout, String charset, String useragent, String proxyserver, int proxyport, String proxyuser, String proxypassword, org.apache.commons.httpclient.Header[] headers) throws IOException
IOException
org.apache.commons.httpclient.methods.RequestEntity toRequestEntity(Object value) throws PageException
PageException
URL toURL(String strUrl, int port) throws MalformedURLException
strUrl
- string represent a url
MalformedURLException
URL toURL(String strUrl) throws MalformedURLException
strUrl
- string represent a url
MalformedURLException
Object toURL(org.apache.commons.httpclient.HttpMethod httpMethod)
String encode(String str, String charset) throws UnsupportedEncodingException
str
- String to translatecharset
- charset used for translation
UnsupportedEncodingException
String decode(String str, String charset) throws UnsupportedEncodingException
str
- encoded stringcharset
- charset used
UnsupportedEncodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |