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 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)
           
 String getAccept()
           
 String getAttribute(String name)
           
 Map<String,String> getAttributes()
           
 String getContentCharset()
           
 com.atlassian.fugue.Option<Long> getContentLength()
           
 String getContentType()
           
 String getEntity()
           
 InputStream getEntityStream()
           
 String getHeader(String name)
           
 Map<String,String> getHeaders()
           
 Request.Method getMethod()
           
 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 URI getUri()
Specified by:
getUri in interface Request

getAccept

public String getAccept()
Specified by:
getAccept in interface Request

getAttribute

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

getAttributes

public Map<String,String> getAttributes()
Specified by:
getAttributes in interface Request

getContentLength

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

isCacheDisabled

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

validate

public Request validate()

getContentType

public String getContentType()
Specified by:
getContentType in interface Message

getContentCharset

public String getContentCharset()
Specified by:
getContentCharset in interface Message

getEntityStream

public InputStream getEntityStream()
                            throws IllegalStateException
Specified by:
getEntityStream in interface Message
Throws:
IllegalStateException

getEntity

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

hasEntity

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

hasReadEntity

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

getHeaders

public Map<String,String> getHeaders()
Specified by:
getHeaders in interface Message

getHeader

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


Copyright © 2012–2015 Atlassian. All rights reserved.