org.nanohttpd.protocols.http.IHTTPSession
public class MicroHTTPSession
extends org.nanohttpd.protocols.http.HTTPSession
HTTPSession
implementation, that has several improvements over the original:
• Loads all files only to memory, without any intermediate disk storage.
• Boosts the request buffer from 512 bytes to 4096.Constructor | Description |
---|---|
MicroHTTPSession(org.nanohttpd.protocols.http.NanoHTTPD httpd,
org.nanohttpd.protocols.http.tempfiles.ITempFileManager tempFileManager,
java.io.InputStream inputStream,
java.io.OutputStream outputStream) |
|
MicroHTTPSession(org.nanohttpd.protocols.http.NanoHTTPD httpd,
org.nanohttpd.protocols.http.tempfiles.ITempFileManager tempFileManager,
java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.net.InetAddress inetAddress) |
Modifier and Type | Method | Description |
---|---|---|
protected java.lang.Integer |
getMemoryStoreLimit() |
|
protected int |
getRequestBufferLen() |
|
protected java.lang.String |
saveTmpFile(java.nio.ByteBuffer b,
int offset,
int len,
java.lang.String filename_hint) |
public MicroHTTPSession(org.nanohttpd.protocols.http.NanoHTTPD httpd, org.nanohttpd.protocols.http.tempfiles.ITempFileManager tempFileManager, java.io.InputStream inputStream, java.io.OutputStream outputStream)
public MicroHTTPSession(org.nanohttpd.protocols.http.NanoHTTPD httpd, org.nanohttpd.protocols.http.tempfiles.ITempFileManager tempFileManager, java.io.InputStream inputStream, java.io.OutputStream outputStream, java.net.InetAddress inetAddress)
protected java.lang.Integer getMemoryStoreLimit()
getMemoryStoreLimit
in class org.nanohttpd.protocols.http.HTTPSession
protected int getRequestBufferLen()
getRequestBufferLen
in class org.nanohttpd.protocols.http.HTTPSession
protected java.lang.String saveTmpFile(java.nio.ByteBuffer b, int offset, int len, java.lang.String filename_hint)
saveTmpFile
in class org.nanohttpd.protocols.http.HTTPSession