public class HttpRequest extends HttpPacket
headers| Constructor and Description |
|---|
HttpRequest(org.tio.core.Node remote) |
addHeader, addHeaders, getHeader, getHeaders, getHeaderString, removeHeader, setHeaderStringcalcHeaderLength, decode4ByteLength, decodeCompress, decodeHasSynSeq, decodeVersion, encode4ByteLength, encodeCompress, encodeEncrypt, encodeHasSynSeq, getBody, getCommand, getStatus, isFromCluster, setCommand, setFromCluster, setStatusclone, getByteCount, getId, getMeta, getPacketListener, getPreEncodedByteBuffer, getRespId, getSynSeq, isBlockSend, isSslEncrypted, setBlockSend, setByteCount, setId, setMeta, setPacketListener, setPreEncodedByteBuffer, setRespId, setSslEncrypted, setSynSeqpublic static void main(String[] args)
args - public HttpConst.RequestBodyFormat getBodyFormat()
public String getBodyString()
public org.tio.core.ChannelContext getChannelContext()
public String getCharset()
public int getContentLength()
public HttpConfig getHttpConfig()
public HttpSession getHttpSession()
public Boolean getIsAjax()
public Boolean getIsSupportGzip()
public org.tio.core.Node getRemote()
public RequestLine getRequestLine()
public String logstr()
public void parseCookie()
public void setBody(byte[] body)
public void setBodyFormat(HttpConst.RequestBodyFormat bodyFormat)
bodyFormat - the bodyFormat to setpublic void setBodyString(String bodyString)
bodyString - the bodyString to setpublic void setChannelContext(org.tio.core.ChannelContext channelContext)
channelContext - the channelContext to setpublic void setCharset(String charset)
charset - the charset to setpublic void setContentLength(int contentLength)
bodyLength - the bodyLength to setpublic void setCookieMap(Map<String,Cookie> cookieMap)
cookieMap - the cookieMap to setpublic void setHeaders(Map<String,String> headers)
setHeaders in class HttpPacketheaders - the headers to setchannelContext - public void setHttpConfig(HttpConfig httpConfig)
httpConfig - the httpConfig to setpublic void setHttpSession(HttpSession httpSession)
httpSession - the httpSession to setpublic void setIsAjax(Boolean isAjax)
isAjax - the isAjax to setpublic void setIsSupportGzip(Boolean isSupportGzip)
isSupportGzip - the isSupportGzip to setpublic void setRemote(org.tio.core.Node remote)
public void setRequestLine(RequestLine requestLine)
requestLine - the requestLine to setCopyright © 2018. All rights reserved.