|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ikrs.httpd.AbstractPostDataWrapper
public abstract class AbstractPostDataWrapper
Constructor Summary | |
---|---|
AbstractPostDataWrapper(CustomLogger logger,
HTTPHeaders headers,
java.io.InputStream in)
Creates a new AbstractPostDataWrapper. |
Method Summary | |
---|---|
long |
getBytePosition()
Get the current read position. |
long |
getContentLength()
Get the post data's designated content length. |
java.io.InputStream |
getInputStream()
Get the input stream associated with this post data. |
CustomLogger |
getLogger()
|
HTTPHeaders |
getRequestHeaders()
Get the HTTP headers assiciated with this post data. |
abstract ikrs.httpd.datatype.FormData |
readFormData()
??? ... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractPostDataWrapper(CustomLogger logger, HTTPHeaders headers, java.io.InputStream in) throws java.lang.NullPointerException
logger
- A custom logger to write log messages to.headers
- The HTTPHeaders (usually read from the input stream before; must not be null).in
- The input stream to read the post data from (must not be null).
java.lang.NullPointerException
- If headers or in is null.Method Detail |
---|
public CustomLogger getLogger()
public HTTPHeaders getRequestHeaders()
getRequestHeaders
in interface PostDataWrapper
public long getContentLength()
getContentLength
in interface PostDataWrapper
public java.io.InputStream getInputStream()
getInputStream
in interface PostDataWrapper
public long getBytePosition()
getBytePosition
in interface PostDataWrapper
public abstract ikrs.httpd.datatype.FormData readFormData() throws java.io.IOException, HeaderFormatException, DataFormatException, UnsupportedFormatException
readFormData
in interface PostDataWrapper
java.io.IOException
HeaderFormatException
DataFormatException
UnsupportedFormatException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |