public class UndertowRequest
extends java.lang.Object
implements net.javapla.jawn.core.http.Request
| Constructor and Description |
|---|
UndertowRequest(io.undertow.server.HttpServerExchange exchange,
java.lang.String contextPath) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
bytes() |
java.lang.String |
contextPath() |
java.util.Map<java.lang.String,net.javapla.jawn.core.http.Cookie> |
cookies() |
java.util.List<net.javapla.jawn.core.http.FormItem> |
files() |
java.util.Optional<java.lang.String> |
header(java.lang.String name) |
java.util.List<java.lang.String> |
headerNames() |
java.util.List<java.lang.String> |
headers(java.lang.String name) |
java.io.InputStream |
in() |
java.lang.String |
ip() |
static <T> java.util.function.Supplier<T> |
memoizeLock(java.util.function.Supplier<T> delegate)
Stolen from Googles Guava Suppliers.java
|
net.javapla.jawn.core.http.HttpMethod |
method() |
java.util.Optional<java.lang.String> |
param(java.lang.String name) |
net.javapla.jawn.core.util.MultiList<java.lang.String> |
params() |
java.util.List<java.lang.String> |
params(java.lang.String name) |
java.lang.String |
path() |
int |
port() |
java.lang.String |
protocol() |
java.lang.String |
queryString() |
java.lang.String |
scheme() |
void |
startAsync() |
public UndertowRequest(io.undertow.server.HttpServerExchange exchange,
java.lang.String contextPath)
throws java.io.IOException
java.io.IOExceptionpublic net.javapla.jawn.core.http.HttpMethod method()
method in interface net.javapla.jawn.core.http.Requestpublic java.lang.String path()
path in interface net.javapla.jawn.core.http.Requestpublic java.lang.String contextPath()
contextPath in interface net.javapla.jawn.core.http.Requestpublic java.lang.String queryString()
queryString in interface net.javapla.jawn.core.http.Requestpublic net.javapla.jawn.core.util.MultiList<java.lang.String> params()
params in interface net.javapla.jawn.core.http.Requestpublic java.util.List<java.lang.String> params(java.lang.String name)
params in interface net.javapla.jawn.core.http.Requestpublic java.util.Optional<java.lang.String> param(java.lang.String name)
param in interface net.javapla.jawn.core.http.Requestpublic java.util.List<net.javapla.jawn.core.http.FormItem> files()
files in interface net.javapla.jawn.core.http.Requestpublic java.util.List<java.lang.String> headers(java.lang.String name)
headers in interface net.javapla.jawn.core.http.Requestpublic java.util.Optional<java.lang.String> header(java.lang.String name)
header in interface net.javapla.jawn.core.http.Requestpublic java.util.List<java.lang.String> headerNames()
headerNames in interface net.javapla.jawn.core.http.Requestpublic java.util.Map<java.lang.String,net.javapla.jawn.core.http.Cookie> cookies()
cookies in interface net.javapla.jawn.core.http.Requestpublic java.io.InputStream in()
throws java.io.IOException
in in interface net.javapla.jawn.core.http.Requestjava.io.IOExceptionpublic byte[] bytes()
throws java.io.IOException
bytes in interface net.javapla.jawn.core.http.Requestjava.io.IOExceptionpublic java.lang.String ip()
ip in interface net.javapla.jawn.core.http.Requestpublic java.lang.String protocol()
protocol in interface net.javapla.jawn.core.http.Requestpublic int port()
port in interface net.javapla.jawn.core.http.Requestpublic java.lang.String scheme()
scheme in interface net.javapla.jawn.core.http.Requestpublic void startAsync()
startAsync in interface net.javapla.jawn.core.http.Requestpublic static <T> java.util.function.Supplier<T> memoizeLock(java.util.function.Supplier<T> delegate)
delegate -