public interface NutsHttpServletFacadeContext
| Modifier and Type | Method and Description |
|---|---|
void |
addResponseHeader(String name,
String value) |
Map<String,List<String>> |
getParameters() |
InputStream |
getRequestBody() |
List<String> |
getRequestHeaderAllValues(String header) |
String |
getRequestHeaderFirstValue(String header) |
Set<String> |
getRequestHeaderKeys(String header) |
String |
getRequestMethod() |
URI |
getRequestURI() |
OutputStream |
getResponseBody() |
boolean |
isGetMethod() |
boolean |
isHeadMethod() |
boolean |
isPostMethod() |
void |
sendError(int code,
String msg) |
void |
sendResponseBytes(int code,
byte[] bytes) |
void |
sendResponseFile(int code,
File file) |
void |
sendResponseFile(int code,
Path file) |
void |
sendResponseHeaders(int code,
long length) |
void |
sendResponseText(int code,
String text) |
String getRequestMethod() throws IOException
IOExceptionboolean isGetMethod()
throws IOException
IOExceptionboolean isPostMethod()
throws IOException
IOExceptionboolean isHeadMethod()
throws IOException
IOExceptionURI getRequestURI() throws IOException
IOExceptionOutputStream getResponseBody() throws IOException
IOExceptionvoid sendError(int code,
String msg)
throws IOException
IOExceptionvoid sendResponseHeaders(int code,
long length)
throws IOException
IOExceptionvoid sendResponseText(int code,
String text)
throws IOException
IOExceptionvoid sendResponseFile(int code,
File file)
throws IOException
IOExceptionvoid sendResponseBytes(int code,
byte[] bytes)
throws IOException
IOExceptionvoid sendResponseFile(int code,
Path file)
throws IOException
IOExceptionSet<String> getRequestHeaderKeys(String header) throws IOException
IOExceptionString getRequestHeaderFirstValue(String header) throws IOException
IOExceptionList<String> getRequestHeaderAllValues(String header) throws IOException
IOExceptionInputStream getRequestBody() throws IOException
IOExceptionMap<String,List<String>> getParameters() throws IOException
IOExceptionvoid addResponseHeader(String name, String value) throws IOException
IOExceptionCopyright © 2022 vpc open source initiative. All rights reserved.