Package fi.iki.elonen
Class NanoFileUpload.NanoHttpdContext
- java.lang.Object
-
- fi.iki.elonen.NanoFileUpload.NanoHttpdContext
-
- All Implemented Interfaces:
org.apache.commons.fileupload.RequestContext,org.apache.commons.fileupload.UploadContext
- Enclosing class:
- NanoFileUpload
public static class NanoFileUpload.NanoHttpdContext extends java.lang.Object implements org.apache.commons.fileupload.UploadContext
-
-
Field Summary
Fields Modifier and Type Field Description private NanoHTTPD.IHTTPSessionsession
-
Constructor Summary
Constructors Constructor Description NanoHttpdContext(NanoHTTPD.IHTTPSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcontentLength()java.lang.StringgetCharacterEncoding()intgetContentLength()java.lang.StringgetContentType()java.io.InputStreamgetInputStream()
-
-
-
Field Detail
-
session
private NanoHTTPD.IHTTPSession session
-
-
Constructor Detail
-
NanoHttpdContext
public NanoHttpdContext(NanoHTTPD.IHTTPSession session)
-
-
Method Detail
-
contentLength
public long contentLength()
- Specified by:
contentLengthin interfaceorg.apache.commons.fileupload.UploadContext
-
getCharacterEncoding
public java.lang.String getCharacterEncoding()
- Specified by:
getCharacterEncodingin interfaceorg.apache.commons.fileupload.RequestContext
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentTypein interfaceorg.apache.commons.fileupload.RequestContext
-
getContentLength
public int getContentLength()
- Specified by:
getContentLengthin interfaceorg.apache.commons.fileupload.RequestContext
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin interfaceorg.apache.commons.fileupload.RequestContext- Throws:
java.io.IOException
-
-