restart.server
Class HttpReader
java.lang.Object
restart.server.HttpReader
public class HttpReader
- extends java.lang.Object
- Author:
- Thibault Ducray
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpReader
public HttpReader(java.io.InputStream is,
RestServerPolicy policy)
throws java.io.IOException,
RestException
- Throws:
java.io.IOException
RestException
decodeFormParams
public static FormParam[] decodeFormParams(java.lang.String query)
getContentLength
public int getContentLength()
getContentType
public java.lang.String getContentType()
getMethod
public java.lang.String getMethod()
getProtocol
public java.lang.String getProtocol()
getUrl
public java.lang.String getUrl()
getQuery
public java.lang.String getQuery()
getFormParams
public FormParam[] getFormParams()
getResourceName
public java.lang.String getResourceName()
getData
public java.io.InputStream getData()
getHeaderLines
public java.util.List<java.lang.String> getHeaderLines()
getDataBytes
public byte[] getDataBytes()
isValid
public boolean isValid()