Interface NHttpServletFacadeContext
- All Known Implementing Classes:
AbstractNHttpServletFacadeContext
public interface NHttpServletFacadeContext
Created by vpc on 1/7/17.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddResponseHeader(String name, String value) NOptional<net.thevpc.nhttp.server.api.FormDataItem> getFormaData(String name) <T> TgetRequestBodyAs(Class<T> type, NContentType contentType) byte[]getRequestHeader(String header) getRequestHeaderKeys(String header) getRequestHeaders(String header) getRequestParameter(String name) getRequestParameters(String name) booleanbooleanbooleanbooleanvoidvoidsendResponseBytes(int code, byte[] bytes) voidsendResponseFile(int code, File file) voidsendResponseFile(int code, Path file) voidsendResponseFile(int code, NPath file) voidsendResponseHeaders(int code, long length) voidsendResponseText(int code, String text)
-
Method Details
-
getRequestMethod
- Throws:
NIOException
-
isGetMethod
- Throws:
NIOException
-
isPostMethod
- Throws:
NIOException
-
isHeadMethod
- Throws:
NIOException
-
getRequestURI
- Throws:
NIOException
-
getResponseBody
- Throws:
NIOException
-
sendError
- Throws:
NIOException
-
sendResponseHeaders
- Throws:
NIOException
-
sendResponseText
- Throws:
NIOException
-
sendResponseFile
- Throws:
NIOException
-
sendResponseBytes
- Throws:
NIOException
-
sendResponseFile
- Throws:
NIOException
-
sendResponseFile
- Throws:
NIOException
-
getRequestHeaderKeys
- Throws:
NIOException
-
getRequestHeader
- Throws:
NIOException
-
getRequestHeaders
- Throws:
NIOException
-
getRequestBody
- Throws:
NIOException
-
getRequestBodyAs
- Throws:
NIOException
-
getRequestBodyAsBytes
- Throws:
NIOException
-
getRequestBodyAsString
- Throws:
NIOException
-
getRequestParameters
- Throws:
NIOException
-
addResponseHeader
- Throws:
NIOException
-
isMultipartRequest
boolean isMultipartRequest() -
getMultipartRequestBoundary
-
getRequestParameters
-
getRequestParameter
-
getFormaDataMap
-
getFormaData
-