protected class NanoHTTPD.HTTPSession extends Object implements NanoHTTPD.IHTTPSession
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BUFSIZE |
static int |
MAX_HEADER_SIZE |
| 构造器和说明 |
|---|
HTTPSession(NanoHTTPD.TempFileManager tempFileManager,
InputStream inputStream,
OutputStream outputStream) |
HTTPSession(NanoHTTPD.TempFileManager tempFileManager,
InputStream inputStream,
OutputStream outputStream,
InetAddress inetAddress) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
execute() |
long |
getBodySize()
Deduce body length in bytes.
|
NanoHTTPD.CookieHandler |
getCookies() |
Map<String,String> |
getHeaders() |
InputStream |
getInputStream() |
NanoHTTPD.Method |
getMethod() |
Map<String,String> |
getParms() |
String |
getQueryParameterString() |
String |
getRemoteHostName()
Get the remote hostname of the requester.
|
String |
getRemoteIpAddress()
Get the remote ip address of the requester.
|
String |
getUri() |
void |
parseBody(Map<String,String> files)
Adds the files in the request body to the files map.
|
public static final int BUFSIZE
public static final int MAX_HEADER_SIZE
public HTTPSession(NanoHTTPD.TempFileManager tempFileManager, InputStream inputStream, OutputStream outputStream)
public HTTPSession(NanoHTTPD.TempFileManager tempFileManager, InputStream inputStream, OutputStream outputStream, InetAddress inetAddress)
public void execute()
throws IOException
execute 在接口中 NanoHTTPD.IHTTPSessionIOExceptionpublic NanoHTTPD.CookieHandler getCookies()
getCookies 在接口中 NanoHTTPD.IHTTPSessionpublic final Map<String,String> getHeaders()
getHeaders 在接口中 NanoHTTPD.IHTTPSessionpublic final InputStream getInputStream()
getInputStream 在接口中 NanoHTTPD.IHTTPSessionpublic final NanoHTTPD.Method getMethod()
getMethod 在接口中 NanoHTTPD.IHTTPSessionpublic final Map<String,String> getParms()
getParms 在接口中 NanoHTTPD.IHTTPSessionpublic String getQueryParameterString()
public final String getUri()
getUri 在接口中 NanoHTTPD.IHTTPSessionpublic long getBodySize()
public void parseBody(Map<String,String> files) throws IOException, NanoHTTPD.ResponseException
NanoHTTPD.IHTTPSessionparseBody 在接口中 NanoHTTPD.IHTTPSessionfiles - map to modifyIOExceptionNanoHTTPD.ResponseExceptionpublic String getRemoteIpAddress()
NanoHTTPD.IHTTPSessiongetRemoteIpAddress 在接口中 NanoHTTPD.IHTTPSessionpublic String getRemoteHostName()
NanoHTTPD.IHTTPSessiongetRemoteHostName 在接口中 NanoHTTPD.IHTTPSessionCopyright © 2019. All rights reserved.