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.
Starting from version 6.0, the rest plugin no longer provides the default implementation for this interface.
For further information, refer to MarshallingRequestFactory and NonMarshallingRequestFactory- 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:
-