Class DefaultRequest
- java.lang.Object
-
- com.atlassian.httpclient.apache.httpcomponents.DefaultRequest
-
- All Implemented Interfaces:
com.atlassian.httpclient.api.Message
,com.atlassian.httpclient.api.Request
public class DefaultRequest extends Object implements com.atlassian.httpclient.api.Request
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultRequest.DefaultRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultRequest.DefaultRequestBuilder
builder(com.atlassian.httpclient.api.HttpClient httpClient)
String
getAccept()
String
getAttribute(String name)
Map<String,String>
getAttributes()
String
getContentCharset()
io.atlassian.fugue.Option<Long>
getContentLength()
String
getContentType()
String
getEntity()
InputStream
getEntityStream()
String
getHeader(String name)
Map<String,String>
getHeaders()
com.atlassian.httpclient.api.Request.Method
getMethod()
URI
getUri()
boolean
hasEntity()
boolean
hasReadEntity()
boolean
isCacheDisabled()
com.atlassian.httpclient.api.Request
validate()
-
-
-
Method Detail
-
builder
public static DefaultRequest.DefaultRequestBuilder builder(com.atlassian.httpclient.api.HttpClient httpClient)
-
getMethod
public com.atlassian.httpclient.api.Request.Method getMethod()
- Specified by:
getMethod
in interfacecom.atlassian.httpclient.api.Request
-
getUri
public URI getUri()
- Specified by:
getUri
in interfacecom.atlassian.httpclient.api.Request
-
getAccept
public String getAccept()
- Specified by:
getAccept
in interfacecom.atlassian.httpclient.api.Request
-
getAttribute
public String getAttribute(String name)
- Specified by:
getAttribute
in interfacecom.atlassian.httpclient.api.Request
-
getAttributes
public Map<String,String> getAttributes()
- Specified by:
getAttributes
in interfacecom.atlassian.httpclient.api.Request
-
getContentLength
public io.atlassian.fugue.Option<Long> getContentLength()
- Specified by:
getContentLength
in interfacecom.atlassian.httpclient.api.Message
-
isCacheDisabled
public boolean isCacheDisabled()
- Specified by:
isCacheDisabled
in interfacecom.atlassian.httpclient.api.Request
-
validate
public com.atlassian.httpclient.api.Request validate()
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfacecom.atlassian.httpclient.api.Message
-
getContentCharset
public String getContentCharset()
- Specified by:
getContentCharset
in interfacecom.atlassian.httpclient.api.Message
-
getEntityStream
public InputStream getEntityStream() throws IllegalStateException
- Specified by:
getEntityStream
in interfacecom.atlassian.httpclient.api.Message
- Throws:
IllegalStateException
-
getEntity
public String getEntity() throws IllegalStateException, IllegalArgumentException
- Specified by:
getEntity
in interfacecom.atlassian.httpclient.api.Message
- Throws:
IllegalStateException
IllegalArgumentException
-
hasEntity
public boolean hasEntity()
- Specified by:
hasEntity
in interfacecom.atlassian.httpclient.api.Message
-
hasReadEntity
public boolean hasReadEntity()
- Specified by:
hasReadEntity
in interfacecom.atlassian.httpclient.api.Message
-
getHeaders
public Map<String,String> getHeaders()
- Specified by:
getHeaders
in interfacecom.atlassian.httpclient.api.Message
-
-