public interface NativeRequest
NativeRequest
.Modifier and Type | Method and Description |
---|---|
List<Cookie> |
cookies() |
List<NativeUpload> |
files(String name)
Get all the files for the provided name or an empty list.
|
Optional<String> |
header(String name)
Get the first header for the provided name or a empty list.
|
List<String> |
headerNames() |
List<String> |
headers(String name)
Get all the headers for the provided name or a empty list.
|
InputStream |
in()
Input stream that represent the body.
|
String |
ip() |
String |
method() |
List<String> |
paramNames() |
List<String> |
params(String name)
Get all the params for the provided name or a empty list.
|
String |
path() |
String |
protocol() |
boolean |
secure() |
<T> T |
upgrade(Class<T> type)
Upgrade the request to something else...like a web socket.
|
String method()
String path()
List<String> paramNames() throws Exception
Exception
- If param extraction fails.List<String> params(String name) throws Exception
name
- Parameter name.Exception
- If param parsing fails.List<String> headers(String name)
name
- Header name.Optional<String> header(String name)
name
- Header name.List<NativeUpload> files(String name) throws IOException
name
- File name.IOException
- If file parsing fails.InputStream in() throws IOException
IOException
- If body read fails.String ip()
String protocol()
boolean secure()
<T> T upgrade(Class<T> type) throws Exception
T
- Upgrade type.type
- Upgrade type.Exception
- If the upgrade fails or it is un-supported.NativeWebSocket
Copyright © 2015. All rights reserved.