Class AbstractNHttpServletFacadeContext
java.lang.Object
net.thevpc.nserver.http.AbstractNHttpServletFacadeContext
- All Implemented Interfaces:
NHttpServletFacadeContext
public abstract class AbstractNHttpServletFacadeContext
extends Object
implements NHttpServletFacadeContext
Created by vpc on 1/7/17.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNOptional<net.thevpc.nhttp.server.api.FormDataItem> getFormaData(String name) <T> TgetRequestBodyAs(Class<T> type, NContentType contentType) byte[]getRequestParameter(String name) getRequestParameters(String name) booleanbooleanbooleanbooleanvoidsendResponseBytes(int code, byte[] bytes) voidsendResponseFile(int code, File file) voidsendResponseFile(int code, Path file) voidsendResponseFile(int code, NPath file) voidsendResponseText(int code, String text) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NHttpServletFacadeContext
addResponseHeader, getRequestBody, getRequestHeader, getRequestHeaderKeys, getRequestHeaders, getRequestMethod, getRequestParameters, getRequestURI, getResponseBody, sendError, sendResponseHeaders
-
Constructor Details
-
AbstractNHttpServletFacadeContext
public AbstractNHttpServletFacadeContext()
-
-
Method Details
-
sendResponseText
- Specified by:
sendResponseTextin interfaceNHttpServletFacadeContext
-
sendResponseFile
- Specified by:
sendResponseFilein interfaceNHttpServletFacadeContext
-
sendResponseBytes
public void sendResponseBytes(int code, byte[] bytes) - Specified by:
sendResponseBytesin interfaceNHttpServletFacadeContext
-
sendResponseFile
- Specified by:
sendResponseFilein interfaceNHttpServletFacadeContext
-
sendResponseFile
- Specified by:
sendResponseFilein interfaceNHttpServletFacadeContext
-
isGetMethod
public boolean isGetMethod()- Specified by:
isGetMethodin interfaceNHttpServletFacadeContext
-
isPostMethod
public boolean isPostMethod()- Specified by:
isPostMethodin interfaceNHttpServletFacadeContext
-
isHeadMethod
public boolean isHeadMethod()- Specified by:
isHeadMethodin interfaceNHttpServletFacadeContext
-
getRequestBodyAsString
- Specified by:
getRequestBodyAsStringin interfaceNHttpServletFacadeContext- Throws:
NIOException
-
getRequestBodyAsBytes
- Specified by:
getRequestBodyAsBytesin interfaceNHttpServletFacadeContext- Throws:
NIOException
-
getRequestBodyAs
- Specified by:
getRequestBodyAsin interfaceNHttpServletFacadeContext- Throws:
NIOException
-
isMultipartRequest
public boolean isMultipartRequest()- Specified by:
isMultipartRequestin interfaceNHttpServletFacadeContext
-
getMultipartRequestBoundary
- Specified by:
getMultipartRequestBoundaryin interfaceNHttpServletFacadeContext
-
getRequestParameter
- Specified by:
getRequestParameterin interfaceNHttpServletFacadeContext
-
getRequestParameters
- Specified by:
getRequestParametersin interfaceNHttpServletFacadeContext
-
getFormaData
- Specified by:
getFormaDatain interfaceNHttpServletFacadeContext
-
getFormaDataMap
- Specified by:
getFormaDataMapin interfaceNHttpServletFacadeContext
-