net.degreedays.api.processing
Class HttpRequest

java.lang.Object
  extended by net.degreedays.api.processing.HttpRequest

public final class HttpRequest
extends java.lang.Object


Nested Class Summary
static class HttpRequest.Builder
          A builder class for creating immutable HttpRequest objects.
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if o is an HttpRequest object with an equal URL and equal parameters, irrespective of the order of the parameter names returned by getParamNames().
 java.lang.String[] getParamNames()
           
 java.lang.String getParamValue(java.lang.String paramName)
           
 int hashCode()
          Overridden to ensure consistency with equals.
 int paramCount()
           
 java.lang.String url()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

url

public java.lang.String url()

paramCount

public int paramCount()

getParamNames

public java.lang.String[] getParamNames()

getParamValue

public java.lang.String getParamValue(java.lang.String paramName)
Throws:
java.lang.NullPointerException - if paramName is null.
java.lang.IllegalArgumentException - if paramName is not one of the parameters stored within this HttpRequest.

hashCode

public int hashCode()
Overridden to ensure consistency with equals.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Returns true if o is an HttpRequest object with an equal URL and equal parameters, irrespective of the order of the parameter names returned by getParamNames().

Overrides:
equals in class java.lang.Object


www.degreedays.net/api/