public abstract class HTTPUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HTTPUtil.InterceptRequest |
static class |
HTTPUtil.InterceptResponse |
Modifier and Type | Field and Description |
---|---|
static java.nio.charset.Charset |
ASCII |
static java.nio.charset.Charset |
UTF8 |
Constructor and Description |
---|
HTTPUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
canonicalpath(java.lang.String path)
Convert path to use '/' consistently and
to remove any trailing '/'
|
static java.io.File |
fillTempFile(java.lang.String base,
java.lang.String content) |
protected static ucar.httpservices.HTTPSession.Settings |
merge(ucar.httpservices.HTTPSession.Settings globalsettings,
ucar.httpservices.HTTPSession.Settings localsettings) |
static java.net.URI |
parseToURI(java.lang.String u)
Convert a uri string to an instance of java.net.URI.
|
public static final java.nio.charset.Charset UTF8
public static final java.nio.charset.Charset ASCII
public static java.io.File fillTempFile(java.lang.String base, java.lang.String content) throws java.io.IOException
java.io.IOException
public static java.net.URI parseToURI(java.lang.String u) throws java.net.URISyntaxException
u
- the uri to convertjava.net.URISyntaxException
protected static ucar.httpservices.HTTPSession.Settings merge(ucar.httpservices.HTTPSession.Settings globalsettings, ucar.httpservices.HTTPSession.Settings localsettings)
public static java.lang.String canonicalpath(java.lang.String path)
path
- convert this path