-
public final class NetworkRequestA class which represents a network request. This could include a number of headers to be used within the request, along with if the request is a POST, some additional data which needs to be written to the connection.
-
-
Constructor Summary
Constructors Constructor Description NetworkRequest(NetworkRequestType type, Map<String, String> headers, String data)
-
Method Summary
Modifier and Type Method Description final NetworkRequestTypegetType()final Map<String, String>getHeaders()final StringgetData()-
-
Constructor Detail
-
NetworkRequest
NetworkRequest(NetworkRequestType type, Map<String, String> headers, String data)
- Parameters:
type- The type of request required.headers- The collection of headers to be used in the request (in key/value pairs).data- The optional body data, used in a NetworkRequestType.POST.
-
-
Method Detail
-
getType
final NetworkRequestType getType()
-
getHeaders
final Map<String, String> getHeaders()
-
-
-
-