public final class ResourceLocator extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceLocator.KeyedValues |
static class |
ResourceLocator.Method |
static class |
ResourceLocator.Request |
static class |
ResourceLocator.Response |
static class |
ResourceLocator.Session |
Modifier and Type | Field and Description |
---|---|
static ResourceLocator.KeyedValues |
DEFAULTS
Default session parameters
|
Constructor and Description |
---|
ResourceLocator() |
ResourceLocator(String url) |
Modifier and Type | Method and Description |
---|---|
ResourceLocator |
form(String key,
String value) |
ResourceLocator |
fragment(String fragment) |
Reader |
getStreamReader()
Open connection and return an input stream reader.
|
ResourceLocator |
host(String host) |
ResourceLocator |
method(ResourceLocator.Method method) |
ResourceLocator |
path(String path) |
ResourceLocator |
port(int port)
The default (null) value is -1.
|
ResourceLocator |
query(String key,
String value) |
ResourceLocator |
scheme(String scheme)
Protocol The default value is "https"
|
static ResourceLocator.Session |
session() |
String |
toString() |
public static ResourceLocator.KeyedValues DEFAULTS
public ResourceLocator()
public ResourceLocator(String url)
public static ResourceLocator.Session session()
public ResourceLocator form(String key, String value)
public ResourceLocator fragment(String fragment)
public Reader getStreamReader()
public ResourceLocator host(String host)
public ResourceLocator method(ResourceLocator.Method method)
public ResourceLocator path(String path)
public ResourceLocator port(int port)
public ResourceLocator query(String key, String value)
public ResourceLocator scheme(String scheme)
Copyright © 2019 Optimatika. All rights reserved.