Package io.milton.servlet
Class ServletRequest
java.lang.Object
io.milton.http.AbstractRequest
io.milton.servlet.ServletRequest
- All Implemented Interfaces:
Request
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.milton.http.Request
Request.CacheControlRequest, Request.Depth, Request.Header, Request.Method -
Field Summary
Fields inherited from class io.milton.http.AbstractRequest
INFINITY -
Constructor Summary
ConstructorsConstructorDescriptionServletRequest(jakarta.servlet.http.HttpServletRequest r, jakarta.servlet.ServletContext servletContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.servlet.http.HttpServletRequestprotected Response.ContentTypegetRequestHeader(Request.Header header) jakarta.servlet.ServletContextjakarta.servlet.http.HttpSessionstatic jakarta.servlet.ServletContextprotected booleanstatic voidparseQueryString(Map<String, String> map, String qs) voidvoidsetAuthorization(Auth auth) static BeanCookietoBeanCookie(jakarta.servlet.http.Cookie c) Methods inherited from class io.milton.http.AbstractRequest
getAbsolutePath, getAcceptEncodingHeader, getAcceptHeader, getAcceptLanguage, getAttributes, getContentLengthHeader, getContentRangeHeader, getContentTypeHeader, getDepthHeader, getDestinationHeader, getExpectHeader, getFiles, getHostHeader, getIfHeader, getIfMatchHeader, getIfModifiedHeader, getIfNoneMatchHeader, getIfRangeHeader, getLockTokenHeader, getOriginHeader, getOverwriteHeader, getParams, getRangeHeader, getRefererHeader, getTimeoutHeader, getUserAgentHeader, stripToPath
-
Constructor Details
-
ServletRequest
public ServletRequest(jakarta.servlet.http.HttpServletRequest r, jakarta.servlet.ServletContext servletContext)
-
-
Method Details
-
toBeanCookie
-
getRequest
public static jakarta.servlet.http.HttpServletRequest getRequest() -
getTLServletContext
public static jakarta.servlet.ServletContext getTLServletContext() -
getSession
public jakarta.servlet.http.HttpSession getSession() -
getFromAddress
-
getRequestHeader
- Specified by:
getRequestHeaderin interfaceRequest- Specified by:
getRequestHeaderin classAbstractRequest
-
getMethod
-
getAbsoluteUrl
-
getAuthorization
-
setAuthorization
-
getInputStream
- Throws:
IOException
-
parseRequestParameters
public void parseRequestParameters(Map<String, String> params, Map<String, throws RequestParseExceptionFileItem> files) - Throws:
RequestParseException
-
parseQueryString
-
getRequestContentType
-
isMultiPart
protected boolean isMultiPart() -
getHeaders
-
getCookie
-
getCookies
-
getRemoteAddr
-
getServletContext
public jakarta.servlet.ServletContext getServletContext() -
getLocale
- Specified by:
getLocalein interfaceRequest- Overrides:
getLocalein classAbstractRequest
-