public final class ResourceLocator extends Object
Modifier and Type | Field and Description |
---|---|
static CookieManager |
DEFAULT_COOKIE_MANAGER |
Constructor and Description |
---|
ResourceLocator(String host) |
Modifier and Type | Method and Description |
---|---|
ResourceLocator |
cookies(CookieHandler cookieHandler) |
ResourceLocator |
fragment(String fragment) |
InputStream |
getInputStream()
Open a connection and get a stream reader.
|
Reader |
getStreamReader()
Open connection and return an input stream reader.
|
URLConnection |
openConnection() |
ResourceLocator |
parameter(String key,
String value) |
Map<String,String> |
parameters() |
ResourceLocator |
path(String path) |
ResourceLocator |
port(int port)
The default (null) value is -1.
|
ResourceLocator |
scheme(String scheme)
Protocol The default value is "https"
|
String |
toString() |
public static final CookieManager DEFAULT_COOKIE_MANAGER
public ResourceLocator(String host)
public ResourceLocator cookies(CookieHandler cookieHandler)
public ResourceLocator fragment(String fragment)
public InputStream getInputStream()
public Reader getStreamReader()
public URLConnection openConnection()
public ResourceLocator parameter(String key, String value)
public ResourceLocator path(String path)
public ResourceLocator port(int port)
public ResourceLocator scheme(String scheme)
Copyright © 2018 Optimatika. All rights reserved.