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 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 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.