public interface Request extends Unwrappable
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
clientAddress() |
default String |
clientAddressForwarded() |
String |
content() |
default <T> T |
contentAs(Class<T> type) |
default <T> T |
contentAs(Type type) |
default <T> T |
contentAs(com.fasterxml.jackson.core.type.TypeReference<T> type) |
default byte[] |
contentAsBytes() |
String |
contentType() |
Cookies |
cookies() |
default CORSRequestType |
corsRequestType() |
String |
header(String name) |
default String |
header(String name,
String defaultValue) |
List<String> |
headerNames() |
default Map<String,List<String>> |
headers() |
List<String> |
headers(String name) |
InputStream |
inputStream() |
default boolean |
isCORS() |
default boolean |
isPreflight() |
boolean |
isSecure() |
default boolean |
isUrlEncodedForm() |
String |
method() |
List<Part> |
parts() |
Query |
query() |
String |
uri() |
unwrap
String uri()
String method()
String content() throws IOException
IOException
String contentType()
InputStream inputStream() throws IOException
IOException
InetSocketAddress clientAddress()
boolean isSecure()
Cookies cookies()
Query query()
default boolean isUrlEncodedForm()
default byte[] contentAsBytes() throws IOException
IOException
default <T> T contentAs(Class<T> type) throws IOException
IOException
default <T> T contentAs(Type type) throws IOException
IOException
default <T> T contentAs(com.fasterxml.jackson.core.type.TypeReference<T> type) throws IOException
IOException
default String clientAddressForwarded()
default CORSRequestType corsRequestType()
default boolean isCORS()
default boolean isPreflight()
Copyright © 2015. All Rights Reserved.