Index

A C F G H I K P R S 
All Classes and Interfaces|All Packages

A

addHeader(String, String) - Method in class io.github.parthappm.http.client.Client
Setter method to add or modify a single header to the existing list of headers.
addParameter(String, String) - Method in class io.github.parthappm.http.client.Client
Setter method to add or modify a single parameter to the existing list of parameters.

C

Client - Class in io.github.parthappm.http.client
A client class to implement the HTTP client functionality.
close() - Method in class io.github.parthappm.http.client.Client
Closes the socket connection to the server

F

followRedirect(boolean) - Method in class io.github.parthappm.http.client.Client
Setter method for flag to whether follow redirect HTTP response.

G

get(String) - Static method in class io.github.parthappm.http.client.SimpleClient
Builds a get request from the provided URL, but does not make the request.
getBody() - Method in class io.github.parthappm.http.client.Response
Getter method to get the response body as bytes array.
getHeaders() - Method in class io.github.parthappm.http.client.Response
Getter method to get the response headers.
getStatusCode() - Method in class io.github.parthappm.http.client.Response
Getter method to get the response status code.
getStatusText() - Method in class io.github.parthappm.http.client.Response
Getter method to get the response status text.
getText() - Method in class io.github.parthappm.http.client.Response
Getter method to get the response body as String representation decoded by UTF 8 standard.
getVersion() - Method in class io.github.parthappm.http.client.Response
Getter method to get the HTTP version specified by the server in the response.

H

HttpClient - Class in io.github.parthappm.http.client
The HTTP Client implementation for non-secured HTTP connection.
HttpClient(String) - Constructor for class io.github.parthappm.http.client.HttpClient
Creates a socket connection to the specified host at port 80 and constructs a new HttpClient object.
HttpClient(String, int) - Constructor for class io.github.parthappm.http.client.HttpClient
Creates a socket connection to the specified host at specified port and constructs a new HttpClient object.
HttpsClient - Class in io.github.parthappm.http.client
The HTTP Client implementation for secured HTTP connection over Secured Sockets Layer (SSL)
HttpsClient(String) - Constructor for class io.github.parthappm.http.client.HttpsClient
Creates a socket connection to the specified host at port 443 and constructs a new HttpsClient object.
HttpsClient(String, int) - Constructor for class io.github.parthappm.http.client.HttpsClient
Creates a socket connection to the specified host at specified port and constructs a new HttpsClient object.

I

io.github.parthappm.http.client - package io.github.parthappm.http.client
 

K

keepConnectionOpen(boolean) - Method in class io.github.parthappm.http.client.Client
Setter method for flag to keep the connection open for the socket.

P

post(String, byte[]) - Static method in class io.github.parthappm.http.client.SimpleClient
Builds a post request from the provided URL and request body, but does not make the request.

R

request() - Method in class io.github.parthappm.http.client.Client
This method has to be called to make the HTTP request to the server after setting the required parameters
request(String, String) - Static method in class io.github.parthappm.http.client.SimpleClient
Builds an HTTP request for the mentioned HTTP method from the provided URL, but does not make the request.
Response - Class in io.github.parthappm.http.client
The Response class contains all the data related to HTTP response returned by the server

S

setBody(byte[]) - Method in class io.github.parthappm.http.client.Client
Setter method to set the request body
setHeader(Map<String, String>) - Method in class io.github.parthappm.http.client.Client
Setter method add or modify multiple headers to the existing list of parameters.
setMethod(String) - Method in class io.github.parthappm.http.client.Client
Setter method to set the HTTP Method.
setParameters(Map<String, String>) - Method in class io.github.parthappm.http.client.Client
Setter method to add or modify multiple parameters to the existing list of parameters.
setPath(String) - Method in class io.github.parthappm.http.client.Client
Setter method to set the path to be used after the host in url.
setSocket(Socket) - Method in class io.github.parthappm.http.client.Client
Setter method for socket object.
SimpleClient - Class in io.github.parthappm.http.client
A class that contains all static methods to create an object of Client class by parsing the provided URL.
suppressException(boolean) - Method in class io.github.parthappm.http.client.Client
Setter method for flag to suppress any kind of exception.
A C F G H I K P R S 
All Classes and Interfaces|All Packages