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 |
HttpRequest(String rawHttpRequest)
Constructor of the http request, will try to parse the raw request data |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpRequest
public HttpRequest(String rawHttpRequest)
- Constructor of the http request, will try to parse the raw request data
- Parameters:
rawHttpRequest - the raw request data
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
Copyright © 2010. All Rights Reserved.