51Degrees Pipeline Java  4.1

51Degrees Pipeline for Java

fiftyone.pipeline.engines.services.HttpClientDefault Class Reference

Inheritance diagram for fiftyone.pipeline.engines.services.HttpClientDefault:

[legend]

Collaboration diagram for fiftyone.pipeline.engines.services.HttpClientDefault:

[legend]

Public Member Functions

HttpURLConnection  connect (URL url) throws IOException
Connect to a URL. More...
String  postData (HttpURLConnection connection, Map< String, String > headers, byte[] data) throws IOException
Post data to a connection opened by the connect(URL) method. More...
String  getResponseString (HttpURLConnection connection) throws IOException
Carry out a get request to a connection opened by the connect(URL) method and return the response string. More...

Member Function Documentation

◆ connect()

HttpURLConnection fiftyone.pipeline.engines.services.HttpClientDefault.connect ( URL   url ) throws IOException

Connect to a URL.

Parameters
url - the URL to connect to
Returns
the open HTTP connection
Exceptions
IOException - if a connection error occurred

Implements fiftyone.pipeline.engines.services.HttpClient.

◆ getResponseString()

String fiftyone.pipeline.engines.services.HttpClientDefault.getResponseString ( HttpURLConnection   connection ) throws IOException

Carry out a get request to a connection opened by the connect(URL) method and return the response string.

Parameters
connection - open connection to get
Returns
response string from request
Exceptions
IOException - if an HTTP exception occurred

Implements fiftyone.pipeline.engines.services.HttpClient.

◆ postData()

String fiftyone.pipeline.engines.services.HttpClientDefault.postData ( HttpURLConnection   connection,
Map< String, String >   headers,
byte []   data  
) throws IOException

Post data to a connection opened by the connect(URL) method.

Parameters
connection - open connection to post to
headers - HTTP header to send with the request
data - data to post
Returns
response message from request
Exceptions
IOException - if an HTTP exception occurred

Implements fiftyone.pipeline.engines.services.HttpClient.