public class HttpClientManager
extends java.lang.Object
Constructor and Description |
---|
HttpClientManager() |
Modifier and Type | Method and Description |
---|---|
static long |
appendUrlContentsToFile(HTTPSession session,
java.lang.String urlencoded,
java.io.File file,
long start,
long end)
Deprecated.
|
static long |
appendUrlContentsToFile(java.lang.String urlencoded,
java.io.File file,
long start,
long end) |
static void |
copyUrlContentsToFile(HTTPSession session,
java.lang.String urlencoded,
java.io.File file)
Deprecated.
|
static void |
copyUrlContentsToFile(java.lang.String urlencoded,
java.io.File file) |
static java.lang.String |
getContentAsString(HTTPSession session,
java.lang.String urlencoded)
Deprecated.
|
static java.lang.String |
getContentAsString(java.lang.String urlencoded)
Get the content from a url.
|
static java.lang.String |
getUrlContentsAsString(HTTPSession session,
java.lang.String urlencoded,
int maxKbytes)
Deprecated.
|
static java.lang.String |
getUrlContentsAsString(java.lang.String urlencoded,
int maxKbytes) |
static void |
init(org.apache.http.client.CredentialsProvider provider,
java.lang.String userAgent)
initialize the HttpClient layer.
|
static int |
putContent(java.lang.String urlencoded,
java.lang.String content)
Put content to a url, using HTTP PUT.
|
public static void init(org.apache.http.client.CredentialsProvider provider, java.lang.String userAgent)
provider
- CredentialsProvider.userAgent
- Content of User-Agent header, may be nullpublic static java.lang.String getContentAsString(java.lang.String urlencoded) throws java.io.IOException
urlencoded
- url as a Stringjava.io.IOException
- on error@Deprecated public static java.lang.String getContentAsString(HTTPSession session, java.lang.String urlencoded) throws java.io.IOException
session
- use this session, if null, create a new oneurlencoded
- url as a Stringjava.io.IOException
- on errorpublic static int putContent(java.lang.String urlencoded, java.lang.String content) throws java.io.IOException
urlencoded
- url as a Stringcontent
- PUT this content at the given url.java.io.IOException
- on errorpublic static java.lang.String getUrlContentsAsString(java.lang.String urlencoded, int maxKbytes) throws java.io.IOException
java.io.IOException
@Deprecated public static java.lang.String getUrlContentsAsString(HTTPSession session, java.lang.String urlencoded, int maxKbytes) throws java.io.IOException
java.io.IOException
public static void copyUrlContentsToFile(java.lang.String urlencoded, java.io.File file) throws java.io.IOException
java.io.IOException
@Deprecated public static void copyUrlContentsToFile(HTTPSession session, java.lang.String urlencoded, java.io.File file) throws java.io.IOException
java.io.IOException
public static long appendUrlContentsToFile(java.lang.String urlencoded, java.io.File file, long start, long end) throws java.io.IOException
java.io.IOException
@Deprecated public static long appendUrlContentsToFile(HTTPSession session, java.lang.String urlencoded, java.io.File file, long start, long end) throws java.io.IOException
java.io.IOException