Package net.sbbi.upnp.jmx
Class HttpRequest
- java.lang.Object
-
- net.sbbi.upnp.jmx.HttpRequest
-
public class HttpRequest extends Object
A class to parse an HTTP request message.- Version:
- 1.0
- Author:
- SuperBonBon
-
-
Constructor Summary
Constructors Constructor Description HttpRequest(String rawHttpRequest)Constructor of the http request, will try to parse the raw request data
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBody()StringgetHttpCommand()StringgetHttpCommandArg()StringgetHTTPFieldElement(String fieldName, String elementName)StringgetHTTPHeaderField(String fieldName)
-
-
-
Constructor Detail
-
HttpRequest
public HttpRequest(String rawHttpRequest)
Constructor of the http request, will try to parse the raw request data- Parameters:
rawHttpRequest- the raw request data
-
-
Method Detail
-
getHttpCommand
public String getHttpCommand()
-
getHttpCommandArg
public String getHttpCommandArg()
-
getBody
public String getBody()
-
getHTTPFieldElement
public String getHTTPFieldElement(String fieldName, String elementName) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
getHTTPHeaderField
public String getHTTPHeaderField(String fieldName) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
-