public class HttpRequestImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
Request |
request |
SSL_ENGINE_THREAD_LOCALclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParts, newPushBuilderpublic Request request
public final AbstractResponse getResponse()
public boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
public BodyInputStream getInputStream() throws IOException
IOExceptionpublic boolean isTrailerFieldsReady()
public void reset()
public Collection<Part> getParts(MultipartConfig configElement) throws IOException
IOExceptionpublic void setPart(Part part)
protected void init(Request request)
public SSLEngine getSslEngine()
getSslEngine in interface HttpRequestpublic final String getHeader(String headName)
HttpRequestgetHeader in interface HttpRequestpublic final String getHeader(HeaderNameEnum headName)
public final Collection<String> getHeaders(String name)
getHeaders in interface HttpRequestpublic final Collection<String> getHeaderNames()
getHeaderNames in interface HttpRequestpublic final String getRequestURI()
getRequestURI in interface HttpRequestpublic final HttpProtocolEnum getProtocol()
getProtocol in interface HttpRequestpublic final String getMethod()
HttpRequestgetMethod in interface HttpRequestString
specifying the name
of the method with which
this request was madepublic final String getScheme()
getScheme in interface HttpRequestpublic final String getRequestURL()
getRequestURL in interface HttpRequestpublic final String getQueryString()
getQueryString in interface HttpRequestpublic final String getContentType()
getContentType in interface HttpRequestpublic final long getContentLength()
getContentLength in interface HttpRequestpublic final String getParameter(String name)
getParameter in interface HttpRequestpublic final Map<String,String[]> getParameters()
getParameters in interface HttpRequestpublic final String[] getParameterValues(String name)
getParameterValues in interface HttpRequestpublic final String getRemoteAddr()
HttpRequestREMOTE_ADDR.getRemoteAddr in interface HttpRequestString containing the
IP address of the client that sent the requestpublic final InetSocketAddress getRemoteAddress()
getRemoteAddress in interface HttpRequestpublic final InetSocketAddress getLocalAddress()
getLocalAddress in interface HttpRequestpublic final String getRemoteHost()
HttpRequestREMOTE_HOST.getRemoteHost in interface HttpRequestString containing the fully
qualified name of the clientpublic final Locale getLocale()
getLocale in interface HttpRequestpublic final Enumeration<Locale> getLocales()
getLocales in interface HttpRequestpublic final String getCharacterEncoding()
getCharacterEncoding in interface HttpRequestpublic final Request getRequest()
public Cookie[] getCookies()
HttpRequestgetCookies in interface HttpRequestpublic org.smartboot.socket.util.Attachment getAttachment()
HttpRequestgetAttachment in interface HttpRequestpublic void setAttachment(org.smartboot.socket.util.Attachment attachment)
HttpRequestsetAttachment in interface HttpRequestattachment - 附件对象public final boolean isSecure()
HttpRequestisSecure in interface HttpRequestCopyright © 2025. All rights reserved.