com.atlassian.sal.api.net
Interface RequestFactory<T extends Request<?,?>>

Type Parameters:
T - The type of request to create
All Known Subinterfaces:
NonMarshallingRequestFactory<T>

public interface RequestFactory<T extends Request<?,?>>

Factory to create Requests. Requests are used to make network calls. The rest plugin provides the default implementation for this interface.

Since:
2.0

Method Summary
 T createRequest(Request.MethodType methodType, String url)
          Creates a request of given Request.MethodType to given url
 boolean supportsHeader()
          Indicates whether the requests can support headers
 

Method Detail

createRequest

T createRequest(Request.MethodType methodType,
                String url)
Creates a request of given Request.MethodType to given url

Parameters:
methodType - The HTTP method type
url - The url to request
Returns:
The request object

supportsHeader

boolean supportsHeader()
Indicates whether the requests can support headers

Returns:
true if the requests can support headers
See Also:
Request.setHeader(String, String), Request.addHeader(String, String)


Copyright © 2010 Atlassian. All Rights Reserved.