Package com.atlassian.sal.api.net
Interface RequestFactory<T extends Request<?,?>>
- Type Parameters:
T- The type of request to create
- All Known Subinterfaces:
MarshallingRequestFactory<T>,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
Modifier and TypeMethodDescriptioncreateRequest(Request.MethodType methodType, String url) Creates a request of givenRequest.MethodTypeto given urlbooleanIndicates whether the requests can support headers
-
Method Details
-
createRequest
Creates a request of givenRequest.MethodTypeto given url- Parameters:
methodType- The HTTP method typeurl- 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:
-