com.atlassian.httpclient.apache.httpcomponents
Class DefaultRequest
java.lang.Object
com.atlassian.httpclient.apache.httpcomponents.DefaultRequest
- All Implemented Interfaces:
- Message, Request
public class DefaultRequest
- extends java.lang.Object
- implements Request
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.