net.sbbi.upnp.jmx
Class HttpRequest

java.lang.Object
  extended by 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
 
Method Summary
 String getBody()
           
 String getHttpCommand()
           
 String getHttpCommandArg()
           
 String getHTTPFieldElement(String fieldName, String elementName)
           
 String getHTTPHeaderField(String fieldName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2010. All Rights Reserved.