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