com.atlassian.httpclient.api
Interface Request

All Superinterfaces:
Message

public interface Request
extends Message

An interface for building and executing HTTP requests.


Nested Class Summary
static interface Request.Builder
           
static class Request.Method
           
 
Method Summary
 String getAccept()
          Returns this request's Accept header, if set.
 String getAttribute(String name)
          Gets an attribute from the request.
 Map<String,String> getAttributes()
          Gets all attributes for this request.
 Request.Method getMethod()
           
 URI getUri()
          Returns this request's URI, if set.
 boolean isCacheDisabled()
           
 
Methods inherited from interface com.atlassian.httpclient.api.Message
getContentCharset, getContentLength, getContentType, getEntity, getEntityStream, getHeader, getHeaders, hasEntity, hasReadEntity
 

Method Detail

getUri

URI getUri()
Returns this request's URI, if set.

Returns:
The URI or null if not yet set

getAccept

String getAccept()
Returns this request's Accept header, if set.

Returns:
The accept header value

getAttribute

String getAttribute(String name)
Gets an attribute from the request. Attributes are request metadata that are forwarded to the analytics plugin when enabled.

Parameters:
name - The attribute name
Returns:
The attribute value, or null if not set

getAttributes

Map<String,String> getAttributes()
Gets all attributes for this request. Attributes are request metadata that are forwarded to the analytics plugin when enabled.

Returns:
All attributes

isCacheDisabled

boolean isCacheDisabled()

getMethod

Request.Method getMethod()


Copyright © 2012–2015 Atlassian. All rights reserved.