com.atlassian.httpclient.apache.httpcomponents
Class DefaultRequest

java.lang.Object
  extended by com.atlassian.httpclient.apache.httpcomponents.DefaultRequest
All Implemented Interfaces:
Message, Request

public class DefaultRequest
extends java.lang.Object
implements Request


Nested Class Summary
static class DefaultRequest.DefaultRequestBuilder
           
 
Nested classes/interfaces inherited from interface com.atlassian.httpclient.api.Request
Request.Builder, Request.Method
 
Method Summary
static DefaultRequest.DefaultRequestBuilder builder(HttpClient httpClient)
           
 java.lang.String getAccept()
           
 java.lang.String getAttribute(java.lang.String name)
           
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
           
 java.lang.String getContentCharset()
           
 com.atlassian.fugue.Option<java.lang.Long> getContentLength()
           
 java.lang.String getContentType()
           
 java.lang.String getEntity()
           
 java.io.InputStream getEntityStream()
           
 java.lang.String getHeader(java.lang.String name)
           
 java.util.Map<java.lang.String,java.lang.String> getHeaders()
           
 Request.Method getMethod()
           
 java.net.URI getUri()
           
 boolean hasEntity()
           
 boolean hasReadEntity()
           
 boolean isCacheDisabled()
           
 Request validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.httpclient.api.Message
getContentCharset, getContentType, getEntity, getEntityStream, getHeader, getHeaders, hasEntity, hasReadEntity
 

Method Detail

builder

public static DefaultRequest.DefaultRequestBuilder builder(HttpClient httpClient)

getMethod

public Request.Method getMethod()
Specified by:
getMethod in interface Request

getUri

public java.net.URI getUri()
Specified by:
getUri in interface Request

getAccept

public java.lang.String getAccept()
Specified by:
getAccept in interface Request

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Specified by:
getAttribute in interface Request

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Specified by:
getAttributes in interface Request

getContentLength

public com.atlassian.fugue.Option<java.lang.Long> getContentLength()
Specified by:
getContentLength in interface Message

isCacheDisabled

public boolean isCacheDisabled()
Specified by:
isCacheDisabled in interface Request

validate

public Request validate()

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface Message

getContentCharset

public java.lang.String getContentCharset()
Specified by:
getContentCharset in interface Message

getEntityStream

public java.io.InputStream getEntityStream()
                                    throws java.lang.IllegalStateException
Specified by:
getEntityStream in interface Message
Throws:
java.lang.IllegalStateException

getEntity

public java.lang.String getEntity()
                           throws java.lang.IllegalStateException,
                                  java.lang.IllegalArgumentException
Specified by:
getEntity in interface Message
Throws:
java.lang.IllegalStateException
java.lang.IllegalArgumentException

hasEntity

public boolean hasEntity()
Specified by:
hasEntity in interface Message

hasReadEntity

public boolean hasReadEntity()
Specified by:
hasReadEntity in interface Message

getHeaders

public java.util.Map<java.lang.String,java.lang.String> getHeaders()
Specified by:
getHeaders in interface Message

getHeader

public java.lang.String getHeader(java.lang.String name)
Specified by:
getHeader in interface Message


Copyright © 2012-2014 Atlassian. All Rights Reserved.