Package | Description |
---|---|
ratpack.http |
The HTTP protocol.
|
ratpack.server |
Objects used to start a ratpack application.
|
Modifier and Type | Method and Description |
---|---|
static HttpUrlBuilder |
HttpUrlBuilder.base(java.net.URI uri)
Create a new builder, with the initial state of the given URI.
|
HttpUrlBuilder |
HttpUrlBuilder.encodedPath(java.lang.String path)
Appends the path to the URL, without escaping any meta characters.
|
HttpUrlBuilder |
HttpUrlBuilder.fragment(java.lang.String fragment)
Add a fragment to the URL
|
HttpUrlBuilder |
HttpUrlBuilder.host(java.lang.String host)
Sets the host to the given value.
|
static HttpUrlBuilder |
HttpUrlBuilder.http()
Create a new HTTP URL builder.
|
static HttpUrlBuilder |
HttpUrlBuilder.https()
Create a new HTTPS URL builder.
|
default HttpUrlBuilder |
HttpUrlBuilder.maybeEncodedPath(java.lang.String path)
Appends the path to the URL, without escaping any meta characters, unless it is empty or
null . |
default HttpUrlBuilder |
HttpUrlBuilder.maybePath(java.lang.String path)
Appends the path to the URL, unless it is empty or
null . |
default HttpUrlBuilder |
HttpUrlBuilder.params(Action<? super com.google.common.collect.ImmutableMultimap.Builder<java.lang.String,java.lang.Object>> params)
Add some query params to the URL.
|
HttpUrlBuilder |
HttpUrlBuilder.params(java.util.Map<java.lang.String,?> params)
Add some query params to the URL.
|
HttpUrlBuilder |
HttpUrlBuilder.params(com.google.common.collect.Multimap<java.lang.String,?> params)
Add some query params to the URL.
|
HttpUrlBuilder |
HttpUrlBuilder.params(MultiValueMap<java.lang.String,?> params)
Add some query params to the URL.
|
HttpUrlBuilder |
HttpUrlBuilder.params(java.lang.String... params)
Add some query params to the URL.
|
HttpUrlBuilder |
HttpUrlBuilder.path(java.lang.String path)
Appends the path to the URL.
|
HttpUrlBuilder |
HttpUrlBuilder.port(int port)
Sets the port to the given value.
|
HttpUrlBuilder |
HttpUrlBuilder.secure()
Sets the protocol to be HTTPS.
|
HttpUrlBuilder |
HttpUrlBuilder.segment(java.lang.String pathSegment,
java.lang.Object... args)
Appends one path segment to the URL.
|
Modifier and Type | Method and Description |
---|---|
default HttpUrlBuilder |
PublicAddress.builder()
Creates a URL builder using the public address as the base.
|
default HttpUrlBuilder |
PublicAddress.builder(Context ctx)
Deprecated.
since 1.2, use
PublicAddress.builder() |
Modifier and Type | Method and Description |
---|---|
default java.net.URI |
PublicAddress.get(Action<? super HttpUrlBuilder> action)
Creates a URL by building a URL based on the public address.
|
default java.net.URI |
PublicAddress.get(Context ctx,
Action<? super HttpUrlBuilder> action)
Deprecated.
since 1.2, use
PublicAddress.get(Action) |