org.codegist.crest
Class HttpRequest

java.lang.Object
  extended by org.codegist.crest.HttpRequest

public class HttpRequest
extends Object

Author:
Laurent Gilles (laurent.gilles@codegist.org)

Nested Class Summary
static class HttpRequest.Builder
          Handy builder for HttpRequest objects.
 
Method Summary
 boolean equals(Object o)
           
 Map<String,Object> getBodyParams()
           
 Long getConnectionTimeout()
           
 String getEncoding()
           
 Charset getEncodingAsCharset()
           
 Map<String,String> getHeaders()
           
 HttpMethod getMeth()
           
 Map<String,String> getQueryParams()
           
 Long getSocketTimeout()
           
 URI getUri()
           
 URL getUrl(boolean includeQueryString)
           
 String getUrlString(boolean includeQueryString)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getMeth

public HttpMethod getMeth()

getUri

public URI getUri()

getUrlString

public String getUrlString(boolean includeQueryString)
                    throws MalformedURLException,
                           UnsupportedEncodingException
Throws:
MalformedURLException
UnsupportedEncodingException

getUrl

public URL getUrl(boolean includeQueryString)
           throws MalformedURLException,
                  UnsupportedEncodingException
Throws:
MalformedURLException
UnsupportedEncodingException

getSocketTimeout

public Long getSocketTimeout()

getConnectionTimeout

public Long getConnectionTimeout()

getEncoding

public String getEncoding()

getEncodingAsCharset

public Charset getEncodingAsCharset()

getHeaders

public Map<String,String> getHeaders()

getQueryParams

public Map<String,String> getQueryParams()

getBodyParams

public Map<String,Object> getBodyParams()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.