public interface HttpRequest
| 限定符和类型 | 方法和说明 |
|---|---|
org.smartboot.socket.util.Attachment |
getAttachment()
获取附件对象
|
String |
getCharacterEncoding() |
int |
getContentLength() |
String |
getContentType() |
Cookie[] |
getCookies()
获取Cookie
|
String |
getHeader(String headName)
获取指定名称的Http Header值
|
Collection<String> |
getHeaderNames() |
Collection<String> |
getHeaders(String name) |
InputStream |
getInputStream() |
InetSocketAddress |
getLocalAddress() |
Locale |
getLocale() |
Enumeration<Locale> |
getLocales() |
String |
getMethod()
Returns the name of the HTTP method with which this
request was made, for example, GET, POST, or PUT.
|
String |
getParameter(String name) |
Map<String,String[]> |
getParameters() |
String[] |
getParameterValues(String name) |
String |
getProtocol() |
String |
getQueryString() |
String |
getRemoteAddr()
Returns the Internet Protocol (IP) address of the client
or last proxy that sent the request.
|
InetSocketAddress |
getRemoteAddress() |
String |
getRemoteHost()
Returns the fully qualified name of the client
or the last proxy that sent the request.
|
String |
getRequestURI() |
String |
getRequestURL() |
String |
getScheme() |
boolean |
isSecure()
是否启动安全通信
|
void |
setAttachment(org.smartboot.socket.util.Attachment attachment)
存放附件,支持任意类型
|
Collection<String> getHeaders(String name)
Collection<String> getHeaderNames()
InputStream getInputStream() throws IOException
IOExceptionString getRequestURI()
String getProtocol()
String getMethod()
String
specifying the name
of the method with which
this request was madeboolean isSecure()
String getScheme()
String getRequestURL()
String getQueryString()
String getContentType()
int getContentLength()
String getRemoteAddr()
REMOTE_ADDR.String containing the
IP address of the client that sent the requestInetSocketAddress getRemoteAddress()
InetSocketAddress getLocalAddress()
String getRemoteHost()
REMOTE_HOST.String containing the fully
qualified name of the clientLocale getLocale()
Enumeration<Locale> getLocales()
String getCharacterEncoding()
Cookie[] getCookies()
org.smartboot.socket.util.Attachment getAttachment()
void setAttachment(org.smartboot.socket.util.Attachment attachment)
attachment - 附件对象Copyright © 2024. All rights reserved.