protected class NanoHTTPD.HTTPSession extends Object implements NanoHTTPD.IHTTPSession
| Modifier and Type | Field and Description | 
|---|---|
static int | 
BUFSIZE  | 
protected NanoHTTPD.CookieHandler | 
cookies  | 
protected Map<String,String> | 
headers  | 
protected BufferedInputStream | 
inputStream  | 
static int | 
MAX_HEADER_SIZE  | 
protected static int | 
MEMORY_STORE_LIMIT  | 
protected NanoHTTPD.Method | 
method  | 
protected OutputStream | 
outputStream  | 
protected Map<String,String> | 
parms  | 
protected String | 
protocolVersion  | 
protected String | 
queryParameterString  | 
protected String | 
remoteIp  | 
protected static int | 
REQUEST_BUFFER_LEN  | 
protected int | 
rlen  | 
protected int | 
splitbyte  | 
protected NanoHTTPD.TempFileManager | 
tempFileManager  | 
protected String | 
uri  | 
| Constructor and Description | 
|---|
HTTPSession(NanoHTTPD.TempFileManager tempFileManager,
           InputStream inputStream,
           OutputStream outputStream)  | 
HTTPSession(NanoHTTPD.TempFileManager tempFileManager,
           InputStream inputStream,
           OutputStream outputStream,
           InetAddress inetAddress)  | 
public static final int BUFSIZE
public static final int MAX_HEADER_SIZE
protected static final int REQUEST_BUFFER_LEN
protected static final int MEMORY_STORE_LIMIT
protected final NanoHTTPD.TempFileManager tempFileManager
protected final OutputStream outputStream
protected final BufferedInputStream inputStream
protected int splitbyte
protected int rlen
protected String uri
protected NanoHTTPD.Method method
protected NanoHTTPD.CookieHandler cookies
protected String queryParameterString
protected String remoteIp
protected String protocolVersion
public HTTPSession(NanoHTTPD.TempFileManager tempFileManager, InputStream inputStream, OutputStream outputStream)
public HTTPSession(NanoHTTPD.TempFileManager tempFileManager, InputStream inputStream, OutputStream outputStream, InetAddress inetAddress)
protected void decodeHeader(BufferedReader in, Map<String,String> pre, Map<String,String> parms, Map<String,String> headers) throws NanoHTTPD.ResponseException
NanoHTTPD.ResponseExceptionprotected void decodeMultipartFormData(String boundary, String encoding, ByteBuffer fbuf, Map<String,String> parms, Map<String,String> files) throws NanoHTTPD.ResponseException
NanoHTTPD.ResponseExceptionprotected int scipOverNewLine(byte[] part_header_buff,
                              int index)
public void execute()
             throws IOException
execute in interface NanoHTTPD.IHTTPSessionIOExceptionprotected int findHeaderEnd(byte[] buf,
                            int rlen)
protected int[] getBoundaryPositions(ByteBuffer b, byte[] boundary)
public NanoHTTPD.CookieHandler getCookies()
getCookies in interface NanoHTTPD.IHTTPSessionpublic final Map<String,String> getHeaders()
getHeaders in interface NanoHTTPD.IHTTPSessionpublic final InputStream getInputStream()
getInputStream in interface NanoHTTPD.IHTTPSessionpublic final NanoHTTPD.Method getMethod()
getMethod in interface NanoHTTPD.IHTTPSessionpublic final Map<String,String> getParms()
getParms in interface NanoHTTPD.IHTTPSessionpublic String getQueryParameterString()
getQueryParameterString in interface NanoHTTPD.IHTTPSessionprotected RandomAccessFile getTmpBucket()
public final String getUri()
getUri in interface NanoHTTPD.IHTTPSessionpublic long getBodySize()
public void parseBody(Map<String,String> files) throws IOException, NanoHTTPD.ResponseException
parseBody in interface NanoHTTPD.IHTTPSessionIOExceptionNanoHTTPD.ResponseExceptionprotected String getAttributeFromContentHeader(String contentTypeHeader, Pattern pattern, String defaultValue)
protected String saveTmpFile(ByteBuffer b, int offset, int len, String filename_hint)
Copyright © 2019 SimiaCryptus Software. All rights reserved.