├── settings.gradle ├── .gitattributes ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── src ├── main │ └── java │ │ └── com │ │ └── github │ │ └── diegonighty │ │ └── http │ │ ├── util │ │ ├── StatusCode.java │ │ ├── Connections.java │ │ └── HeaderMap.java │ │ ├── request │ │ ├── types │ │ │ ├── HttpDeleteRequest.java │ │ │ ├── HttpGetRequest.java │ │ │ ├── HttpInputRequest.java │ │ │ ├── WrappedHttpDeleteRequest.java │ │ │ ├── WrappedHttpGetRequest.java │ │ │ └── WrappedHttpInputRequest.java │ │ └── HttpRequest.java │ │ ├── terminable │ │ └── SilentlyTerminable.java │ │ ├── exception │ │ └── FailedConnectionException.java │ │ ├── response │ │ ├── HttpResponse.java │ │ ├── WrappedNotSerializedResponse.java │ │ └── WrappedHttpResponse.java │ │ ├── serialization │ │ ├── RequestSerializer.java │ │ ├── ResponseDeserializer.java │ │ └── common │ │ │ └── JsonSerializationWrapper.java │ │ ├── CloseableConnection.java │ │ ├── HttpCloseableConnection.java │ │ └── HttpConnection.java └── test │ └── java │ └── HttpTest.java ├── docs ├── package-list ├── script.js ├── com │ └── github │ │ └── diegonighty │ │ └── http │ │ ├── exception │ │ ├── package-frame.html │ │ ├── package-tree.html │ │ └── package-summary.html │ │ ├── request │ │ ├── package-frame.html │ │ ├── types │ │ │ ├── package-frame.html │ │ │ └── class-use │ │ │ │ ├── WrappedHttpGetRequest.html │ │ │ │ ├── WrappedHttpPostRequest.html │ │ │ │ ├── WrappedHttpInputRequest.html │ │ │ │ └── WrappedHttpDeleteRequest.html │ │ ├── package-tree.html │ │ └── package-summary.html │ │ ├── terminable │ │ ├── package-frame.html │ │ ├── package-tree.html │ │ └── package-summary.html │ │ ├── serialization │ │ ├── common │ │ │ ├── package-frame.html │ │ │ ├── package-use.html │ │ │ ├── class-use │ │ │ │ ├── JsonSerializationWrapper.html │ │ │ │ └── DefaultResponseDeserializer.html │ │ │ └── package-summary.html │ │ ├── package-frame.html │ │ └── package-tree.html │ │ ├── util │ │ ├── package-frame.html │ │ ├── class-use │ │ │ ├── StatusCode.html │ │ │ └── Connections.html │ │ ├── package-tree.html │ │ └── package-summary.html │ │ ├── test │ │ ├── package-frame.html │ │ └── package-tree.html │ │ ├── response │ │ ├── package-frame.html │ │ └── class-use │ │ │ ├── WrappedHttpResponse.html │ │ │ └── WrappedNotSerializedResponse.html │ │ ├── package-frame.html │ │ └── class-use │ │ └── HttpCloseableConnection.html ├── package-frame.html ├── overview-frame.html ├── index.html ├── deprecated-list.html ├── constant-values.html ├── allclasses-noframe.html ├── serialized-form.html ├── allclasses-frame.html ├── package-summary.html ├── package-tree.html └── index-files │ └── index-8.html ├── LICENSE ├── .gitignore └── README.md /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'HTTP-Wrapper' 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/diegonighty/HTTP-Wrapper/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/util/StatusCode.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.util; 2 | 3 | public class StatusCode { 4 | 5 | public static boolean isSuccessful(int code) { 6 | return code >= 200 && code <= 206; 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/request/types/HttpDeleteRequest.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.request.types; 2 | 3 | import com.github.diegonighty.http.request.HttpRequest; 4 | 5 | public interface HttpDeleteRequest extends HttpRequest { } 6 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/terminable/SilentlyTerminable.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.terminable; 2 | 3 | public interface SilentlyTerminable extends AutoCloseable { 4 | 5 | /** 6 | * Close a resource without catch exception 7 | */ 8 | @Override 9 | void close(); 10 | 11 | } 12 | -------------------------------------------------------------------------------- /docs/package-list: -------------------------------------------------------------------------------- 1 | com.github.diegonighty.http 2 | com.github.diegonighty.http.exception 3 | com.github.diegonighty.http.request 4 | com.github.diegonighty.http.request.types 5 | com.github.diegonighty.http.response 6 | com.github.diegonighty.http.serialization 7 | com.github.diegonighty.http.serialization.common 8 | com.github.diegonighty.http.terminable 9 | com.github.diegonighty.http.util 10 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/exception/FailedConnectionException.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.exception; 2 | 3 | public class FailedConnectionException extends Exception { 4 | 5 | private final int code; 6 | 7 | public FailedConnectionException(String header, int code) { 8 | super(header); 9 | 10 | this.code = code; 11 | } 12 | 13 | public int getCode() { 14 | return code; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/response/HttpResponse.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.response; 2 | 3 | import java.io.IOException; 4 | 5 | public interface HttpResponse { 6 | 7 | /** 8 | * Result of the HTTP Request 9 | * @return http response serialized 10 | * 11 | * @throws IOException if an I/O exception occurs. 12 | */ 13 | T result() throws IOException; 14 | 15 | /** 16 | * The status code of the HTTP Request 17 | * @return http status code 18 | */ 19 | int code(); 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/serialization/RequestSerializer.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.serialization; 2 | 3 | import java.io.IOException; 4 | import java.io.OutputStream; 5 | 6 | public interface RequestSerializer { 7 | 8 | /** 9 | * Serialize request to json 10 | * 11 | * @param object to be serialized 12 | * @param stream OutputStream involved in the HTTP Request 13 | * 14 | * @throws IOException if an I/O exception occurs. 15 | */ 16 | void serialize(T object, OutputStream stream) throws IOException; 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/serialization/ResponseDeserializer.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.serialization; 2 | 3 | import java.io.IOException; 4 | import java.io.InputStream; 5 | 6 | public interface ResponseDeserializer { 7 | 8 | /** 9 | * Custom deserializer for the HTTP Response 10 | * 11 | * @param stream the response of the http request 12 | * 13 | * @return the serialized response 14 | * 15 | * @throws IOException if an I/O exception occurs. 16 | */ 17 | T deserialize(InputStream stream) throws IOException; 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/CloseableConnection.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http; 2 | 3 | import com.github.diegonighty.http.terminable.SilentlyTerminable; 4 | 5 | import java.io.IOException; 6 | 7 | public interface CloseableConnection extends SilentlyTerminable, HttpConnection { 8 | 9 | /** 10 | * Open a HTTP URL Connection 11 | * 12 | * @return the same closeable connection, but with the HTTP URL opened 13 | * 14 | * @throws IOException if an I/O exception occurs. 15 | */ 16 | CloseableConnection open() throws IOException; 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/response/WrappedNotSerializedResponse.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.response; 2 | 3 | public class WrappedNotSerializedResponse implements HttpResponse { 4 | 5 | private final int code; 6 | 7 | public WrappedNotSerializedResponse(int code) { 8 | this.code = code; 9 | } 10 | 11 | /** 12 | * {@inheritDoc} 13 | */ 14 | @Override 15 | public Integer result() { 16 | return code; 17 | } 18 | 19 | /** 20 | * {@inheritDoc} 21 | */ 22 | @Override 23 | public int code() { 24 | return code; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/request/types/HttpGetRequest.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.request.types; 2 | 3 | import com.github.diegonighty.http.request.HttpRequest; 4 | import com.github.diegonighty.http.serialization.ResponseDeserializer; 5 | 6 | public interface HttpGetRequest extends HttpRequest { 7 | 8 | /** 9 | * Set the custom deserializer, this replace the GSON default deserializer 10 | * 11 | * @param deserializer The custom deserializer for the JSON Response 12 | * @return HttpGetRequest the same request with the changes 13 | */ 14 | HttpGetRequest setResponseDeserializer(ResponseDeserializer deserializer); 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/request/HttpRequest.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.request; 2 | 3 | import com.github.diegonighty.http.exception.FailedConnectionException; 4 | import com.github.diegonighty.http.response.HttpResponse; 5 | 6 | import java.io.IOException; 7 | 8 | public interface HttpRequest { 9 | 10 | /** 11 | * Execute the HTTP request 12 | * 13 | * @return the http responses if the request is a PUT/POST will be return status code 14 | * 15 | * @throws FailedConnectionException if server does not respond correctly 16 | * @throws IOException if an I/O exception occurs. 17 | */ 18 | HttpResponse execute() throws FailedConnectionException, IOException; 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/request/types/HttpInputRequest.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.request.types; 2 | 3 | import com.github.diegonighty.http.request.HttpRequest; 4 | import com.github.diegonighty.http.serialization.RequestSerializer; 5 | 6 | public interface HttpInputRequest extends HttpRequest { 7 | 8 | /** 9 | * Set custom serializer from object to JSON 10 | * 11 | * @param serializer convert object to JSON 12 | * @return the same http request with the changes 13 | */ 14 | HttpInputRequest setSerializer(RequestSerializer serializer); 15 | 16 | /** 17 | * Set the object to post 18 | * 19 | * @param object to post 20 | * @return the same http request with the changes 21 | */ 22 | HttpInputRequest setObject(T object); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /docs/script.js: -------------------------------------------------------------------------------- 1 | function show(type) 2 | { 3 | count = 0; 4 | for (var key in methods) { 5 | var row = document.getElementById(key); 6 | if ((methods[key] & type) != 0) { 7 | row.style.display = ''; 8 | row.className = (count++ % 2) ? rowColor : altColor; 9 | } 10 | else 11 | row.style.display = 'none'; 12 | } 13 | updateTabs(type); 14 | } 15 | 16 | function updateTabs(type) 17 | { 18 | for (var value in tabs) { 19 | var sNode = document.getElementById(tabs[value][0]); 20 | var spanNode = sNode.firstChild; 21 | if (value == type) { 22 | sNode.className = activeTableTab; 23 | spanNode.innerHTML = tabs[value][1]; 24 | } 25 | else { 26 | sNode.className = tableTab; 27 | spanNode.innerHTML = "" + tabs[value][1] + ""; 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/response/WrappedHttpResponse.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.response; 2 | 3 | import com.github.diegonighty.http.serialization.ResponseDeserializer; 4 | 5 | import java.io.IOException; 6 | import java.io.InputStream; 7 | 8 | public final class WrappedHttpResponse implements HttpResponse { 9 | 10 | private final InputStream result; 11 | private final int code; 12 | 13 | private final ResponseDeserializer deserializer; 14 | 15 | public WrappedHttpResponse(InputStream result, int code, ResponseDeserializer deserializer) { 16 | this.result = result; 17 | this.code = code; 18 | 19 | this.deserializer = deserializer; 20 | } 21 | 22 | /** 23 | * {@inheritDoc} 24 | */ 25 | @Override 26 | public R result() throws IOException { 27 | return deserializer.deserialize(result); 28 | } 29 | 30 | /** 31 | * {@inheritDoc} 32 | */ 33 | @Override 34 | public int code() { 35 | return code; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/util/Connections.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.util; 2 | 3 | import com.github.diegonighty.http.CloseableConnection; 4 | import com.github.diegonighty.http.HttpCloseableConnection; 5 | 6 | public class Connections { 7 | 8 | /** 9 | * Create a new CloseableConnection from URL 10 | * 11 | * @param url of the Request 12 | * @param type of Connection 13 | * @return the new Connection 14 | */ 15 | public static CloseableConnection of(String url) { 16 | return new HttpCloseableConnection<>(url); 17 | } 18 | 19 | /** 20 | * Create a new CloseableConnection from URL 21 | * 22 | * @param url of the Request 23 | * @param queryParameters parameter is like id 24 | * @param type of Connection 25 | * @return the new Connection 26 | */ 27 | public static CloseableConnection of(String url, Object... queryParameters) { 28 | return new HttpCloseableConnection<>(String.format(url, queryParameters)); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/exception/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.exception 7 | 8 | 9 | 10 | 11 | 12 |

com.github.diegonighty.http.exception

13 |
14 |

Exceptions

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/request/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.request 7 | 8 | 9 | 10 | 11 | 12 |

com.github.diegonighty.http.request

13 |
14 |

Interfaces

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/terminable/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.terminable 7 | 8 | 9 | 10 | 11 | 12 |

com.github.diegonighty.http.terminable

13 |
14 |

Interfaces

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/serialization/common/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.serialization.common 7 | 8 | 9 | 10 | 11 | 12 |

com.github.diegonighty.http.serialization.common

13 |
14 |

Classes

15 | 18 |
19 | 20 | 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Diego Cardenas 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/util/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.util 7 | 8 | 9 | 10 | 11 | 12 |

com.github.diegonighty.http.util

13 |
14 |

Classes

15 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | <Unnamed> 7 | 8 | 9 | 10 | 11 | 12 |

<Unnamed>

13 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/test/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.test 7 | 8 | 9 | 10 | 11 | 12 |

com.github.diegonighty.http.test

13 |
14 |

Classes

15 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/serialization/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.serialization 7 | 8 | 9 | 10 | 11 | 12 |

com.github.diegonighty.http.serialization

13 |
14 |

Interfaces

15 | 19 |
20 | 21 | 22 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/request/types/WrappedHttpDeleteRequest.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.request.types; 2 | 3 | import com.github.diegonighty.http.exception.FailedConnectionException; 4 | import com.github.diegonighty.http.response.HttpResponse; 5 | import com.github.diegonighty.http.response.WrappedNotSerializedResponse; 6 | import com.github.diegonighty.http.util.StatusCode; 7 | 8 | import java.io.IOException; 9 | import java.net.HttpURLConnection; 10 | 11 | public class WrappedHttpDeleteRequest implements HttpDeleteRequest { 12 | 13 | private final HttpURLConnection connection; 14 | 15 | public WrappedHttpDeleteRequest(HttpURLConnection connection) { 16 | this.connection = connection; 17 | } 18 | 19 | @Override 20 | public HttpResponse execute() throws FailedConnectionException, IOException { 21 | connection.setDoOutput(true); 22 | connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); 23 | 24 | connection.connect(); 25 | 26 | if (!StatusCode.isSuccessful(connection.getResponseCode())) { 27 | throw new FailedConnectionException("Server is not responding", connection.getResponseCode()); 28 | } 29 | 30 | return new WrappedNotSerializedResponse(connection.getResponseCode()); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/response/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.response 7 | 8 | 9 | 10 | 11 | 12 |

com.github.diegonighty.http.response

13 |
14 |

Interfaces

15 | 18 |

Classes

19 | 23 |
24 | 25 | 26 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/util/HeaderMap.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.util; 2 | 3 | import com.github.diegonighty.http.HttpConnection.RequestField; 4 | import java.util.LinkedHashMap; 5 | import java.util.Map; 6 | import java.util.Map.Entry; 7 | 8 | public class HeaderMap { 9 | 10 | private final Map headerMap; 11 | 12 | protected HeaderMap(Map map) { 13 | this.headerMap = map; 14 | } 15 | 16 | private static Map map(Map map) { 17 | Map mapped = new LinkedHashMap<>(); 18 | 19 | for(Entry entry : map.entrySet()) { 20 | mapped.put(entry.getKey().parse(), entry.getValue()); 21 | } 22 | 23 | return mapped; 24 | } 25 | 26 | public static HeaderMap ofString(Map map) { 27 | return new HeaderMap(map); 28 | } 29 | 30 | public static HeaderMap of(Map map) { 31 | return new HeaderMap(map(map)); 32 | } 33 | 34 | public void put(String header, V value) { 35 | headerMap.put(header, value); 36 | } 37 | 38 | public void put(RequestField field, V value) { 39 | put(field.parse(), value); 40 | } 41 | 42 | public String get(RequestField field) { 43 | return String.valueOf(headerMap.get(field.parse())); 44 | } 45 | 46 | public void remove(RequestField field) { 47 | headerMap.remove(field.parse()); 48 | } 49 | 50 | public Map getHeaderMap() { 51 | return headerMap; 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/request/types/WrappedHttpGetRequest.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.request.types; 2 | 3 | import com.github.diegonighty.http.exception.FailedConnectionException; 4 | import com.github.diegonighty.http.response.HttpResponse; 5 | import com.github.diegonighty.http.response.WrappedHttpResponse; 6 | import com.github.diegonighty.http.serialization.ResponseDeserializer; 7 | import com.github.diegonighty.http.util.StatusCode; 8 | 9 | import java.io.IOException; 10 | import java.net.HttpURLConnection; 11 | 12 | public final class WrappedHttpGetRequest implements HttpGetRequest { 13 | 14 | private final HttpURLConnection connection; 15 | private ResponseDeserializer deserializer; 16 | 17 | public WrappedHttpGetRequest(HttpURLConnection connection) { 18 | this.connection = connection; 19 | } 20 | 21 | /** 22 | * {@inheritDoc} 23 | */ 24 | @Override 25 | public HttpGetRequest setResponseDeserializer(ResponseDeserializer deserializer) { 26 | this.deserializer = deserializer; 27 | 28 | return this; 29 | } 30 | 31 | /** 32 | * {@inheritDoc} 33 | */ 34 | @Override 35 | public HttpResponse execute() throws FailedConnectionException, IOException { 36 | connection.connect(); 37 | 38 | if (!StatusCode.isSuccessful(connection.getResponseCode())) { 39 | throw new FailedConnectionException("Server is not responding", connection.getResponseCode()); 40 | } 41 | 42 | return new WrappedHttpResponse<>(connection.getInputStream(), connection.getResponseCode(), deserializer); 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http 7 | 8 | 9 | 10 | 11 | 12 |

com.github.diegonighty.http

13 |
14 |

Interfaces

15 | 19 |

Classes

20 | 23 |

Enums

24 | 28 |
29 | 30 | 31 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/request/types/WrappedHttpInputRequest.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.request.types; 2 | 3 | import com.github.diegonighty.http.exception.FailedConnectionException; 4 | import com.github.diegonighty.http.response.HttpResponse; 5 | import com.github.diegonighty.http.response.WrappedNotSerializedResponse; 6 | import com.github.diegonighty.http.serialization.RequestSerializer; 7 | import com.github.diegonighty.http.util.StatusCode; 8 | 9 | import java.io.IOException; 10 | import java.net.HttpURLConnection; 11 | 12 | public class WrappedHttpInputRequest implements HttpInputRequest { 13 | 14 | private final HttpURLConnection connection; 15 | private RequestSerializer serializer; 16 | 17 | private T object; 18 | 19 | public WrappedHttpInputRequest(HttpURLConnection connection) { 20 | this.connection = connection; 21 | } 22 | 23 | /** 24 | * {@inheritDoc} 25 | */ 26 | @Override 27 | public HttpInputRequest setSerializer(RequestSerializer serializer) { 28 | this.serializer = serializer; 29 | return this; 30 | } 31 | 32 | /** 33 | * {@inheritDoc} 34 | */ 35 | @Override 36 | public HttpInputRequest setObject(T object) { 37 | this.object = object; 38 | return this; 39 | } 40 | 41 | /** 42 | * {@inheritDoc} 43 | */ 44 | @Override 45 | public HttpResponse execute() throws FailedConnectionException, IOException { 46 | connection.setDoOutput(true); 47 | connection.setRequestProperty("Content-Type", "application/json; charset=UTF-8"); 48 | 49 | connection.connect(); 50 | 51 | serializer.serialize(object, connection.getOutputStream()); 52 | 53 | if (!StatusCode.isSuccessful(connection.getResponseCode())) { 54 | throw new FailedConnectionException("Server is not responding", connection.getResponseCode()); 55 | } 56 | 57 | return new WrappedNotSerializedResponse(connection.getResponseCode()); 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/request/types/package-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.request.types 7 | 8 | 9 | 10 | 11 | 12 |

com.github.diegonighty.http.request.types

13 |
14 |

Interfaces

15 | 20 |

Classes

21 | 26 |
27 | 28 | 29 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/serialization/common/JsonSerializationWrapper.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http.serialization.common; 2 | 3 | import com.github.diegonighty.http.serialization.RequestSerializer; 4 | import com.github.diegonighty.http.serialization.ResponseDeserializer; 5 | import com.google.gson.Gson; 6 | import com.google.gson.reflect.TypeToken; 7 | 8 | import java.io.BufferedOutputStream; 9 | import java.io.BufferedReader; 10 | import java.io.IOException; 11 | import java.io.InputStream; 12 | import java.io.InputStreamReader; 13 | import java.io.OutputStream; 14 | import java.nio.charset.StandardCharsets; 15 | 16 | /** 17 | * JsonSerializationWrapper is a default (de)serializer using JSON 18 | * 19 | * @param Object to deserialize 20 | */ 21 | public class JsonSerializationWrapper implements ResponseDeserializer, RequestSerializer { 22 | 23 | private static final Gson GSON = new Gson(); 24 | private final TypeToken token; 25 | 26 | public JsonSerializationWrapper(TypeToken token) { 27 | this.token = token; 28 | } 29 | 30 | public JsonSerializationWrapper(Class token) { 31 | this.token = TypeToken.get(token); 32 | } 33 | 34 | /** 35 | * {@inheritDoc} 36 | */ 37 | @Override 38 | public T deserialize(InputStream stream) throws IOException { 39 | try (BufferedReader reader = new BufferedReader(new InputStreamReader(stream))) { 40 | StringBuilder resultBuilder = new StringBuilder(); 41 | reader.lines().forEachOrdered(resultBuilder::append); 42 | 43 | return GSON.fromJson(resultBuilder.toString(), token.getType()); 44 | } 45 | } 46 | 47 | /** 48 | * {@inheritDoc} 49 | */ 50 | @Override 51 | public void serialize(T object, OutputStream stream) throws IOException { 52 | String json = GSON.toJson(object); 53 | byte[] bytes = json.getBytes(StandardCharsets.UTF_8); 54 | 55 | try (BufferedOutputStream output = new BufferedOutputStream(stream)) { 56 | output.write(bytes); 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /docs/overview-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Overview List 7 | 8 | 9 | 10 | 11 | 12 | 13 | 27 |

 

28 | 29 | 30 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # User-specific stuff 2 | .idea/ 3 | 4 | *.iml 5 | *.ipr 6 | *.iws 7 | 8 | # IntelliJ 9 | out/ 10 | 11 | # Compiled class file 12 | *.class 13 | 14 | # Log file 15 | *.log 16 | 17 | # BlueJ files 18 | *.ctxt 19 | 20 | # Package Files # 21 | *.jar 22 | *.war 23 | *.nar 24 | *.ear 25 | *.zip 26 | *.tar.gz 27 | *.rar 28 | 29 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 30 | hs_err_pid* 31 | 32 | *~ 33 | 34 | # temporary files which can be created if a process still has a handle open of a deleted file 35 | .fuse_hidden* 36 | 37 | # KDE directory preferences 38 | .directory 39 | 40 | .gradle 41 | 42 | # Linux trash folder which might appear on any partition or disk 43 | .Trash-* 44 | 45 | # .nfs files are created when an open file is removed but is still being accessed 46 | .nfs* 47 | 48 | # Mobile Tools for Java (J2ME) 49 | .mtj.tmp/ 50 | 51 | ### Gradle ### 52 | /build/ 53 | *.lock 54 | *.bin 55 | *.bat 56 | 57 | # Ignore Gradle GUI config 58 | gradle-app.setting 59 | 60 | # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) 61 | !gradle-wrapper.jar 62 | 63 | # Cache of project 64 | .gradletasknamecache 65 | 66 | # IntelliJ IDEA 67 | .idea 68 | */build 69 | *.MF` 70 | 71 | # General 72 | .DS_Store 73 | .AppleDouble 74 | .LSOverride 75 | 76 | # Icon must end with two \r 77 | Icon 78 | 79 | # Thumbnails 80 | ._* 81 | 82 | # Files that might appear in the root of a volume 83 | .DocumentRevisions-V100 84 | .fseventsd 85 | .Spotlight-V100 86 | .TemporaryItems 87 | .Trashes 88 | .VolumeIcon.icns 89 | .com.apple.timemachine.donotpresent 90 | 91 | # Directories potentially created on remote AFP share 92 | .AppleDB 93 | .AppleDesktop 94 | Network Trash Folder 95 | Temporary Items 96 | .apdisk 97 | 98 | # Windows thumbnail cache files 99 | Thumbs.db 100 | Thumbs.db:encryptable 101 | ehthumbs.db 102 | ehthumbs_vista.db 103 | 104 | # Dump file 105 | *.stackdump 106 | 107 | # Folder config file 108 | [Dd]esktop.ini 109 | 110 | # Recycle Bin used on file shares 111 | $RECYCLE.BIN/ 112 | 113 | # Windows Installer files 114 | *.cab 115 | *.msi 116 | *.msix 117 | *.msm 118 | *.msp 119 | 120 | # Windows shortcuts 121 | *.lnk 122 | 123 | target/ 124 | 125 | pom.xml.tag 126 | pom.xml.releaseBackup 127 | pom.xml.versionsBackup 128 | pom.xml.next 129 | 130 | release.properties 131 | dependency-reduced-pom.xml 132 | buildNumber.properties 133 | .mvn/timing.properties 134 | .mvn/wrapper/maven-wrapper.jar 135 | .flattened-pom.xml 136 | 137 | # Common working directory 138 | run/ -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Generated Documentation (Untitled) 7 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | <noscript> 69 | <div>JavaScript is disabled on your browser.</div> 70 | </noscript> 71 | <h2>Frame Alert</h2> 72 | <p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/HttpCloseableConnection.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http; 2 | 3 | import com.github.diegonighty.http.request.types.HttpDeleteRequest; 4 | import com.github.diegonighty.http.request.types.HttpGetRequest; 5 | import com.github.diegonighty.http.request.types.HttpInputRequest; 6 | import com.github.diegonighty.http.request.types.WrappedHttpDeleteRequest; 7 | import com.github.diegonighty.http.request.types.WrappedHttpGetRequest; 8 | import com.github.diegonighty.http.request.types.WrappedHttpInputRequest; 9 | 10 | import java.io.IOException; 11 | import java.net.HttpURLConnection; 12 | import java.net.ProtocolException; 13 | import java.net.URL; 14 | import java.util.Map; 15 | import java.util.Map.Entry; 16 | 17 | public final class HttpCloseableConnection implements CloseableConnection { 18 | 19 | private HttpURLConnection connection; 20 | 21 | private final String url; 22 | 23 | public HttpCloseableConnection(String url) { 24 | this.url = url; 25 | } 26 | 27 | /** 28 | * {@inheritDoc} 29 | */ 30 | @Override 31 | public CloseableConnection open() throws IOException { 32 | this.connection = (HttpURLConnection) new URL(url).openConnection(); 33 | 34 | return this; 35 | } 36 | 37 | /** 38 | * {@inheritDoc} 39 | */ 40 | @Override 41 | public void close() { 42 | if (connection != null) { 43 | connection.disconnect(); 44 | } 45 | } 46 | 47 | /** 48 | * {@inheritDoc} 49 | */ 50 | @Override 51 | public HttpConnection addRequestField(String field, V value) { 52 | connection.setRequestProperty(field, value.toString()); 53 | return this; 54 | } 55 | 56 | /** 57 | * {@inheritDoc} 58 | */ 59 | @Override 60 | public HttpConnection addRequestFields(Map map) { 61 | for (Entry entry : map.entrySet()) { 62 | addRequestField(entry.getKey(), entry.getValue()); 63 | } 64 | 65 | return this; 66 | } 67 | 68 | /** 69 | * {@inheritDoc} 70 | */ 71 | @Override 72 | public HttpGetRequest createGetRequest() { 73 | setMethod(HttpMethod.GET); 74 | 75 | return new WrappedHttpGetRequest<>(connection); 76 | } 77 | 78 | /** 79 | * {@inheritDoc} 80 | */ 81 | @Override 82 | public HttpInputRequest createPostRequest() { 83 | setMethod(HttpMethod.POST); 84 | 85 | return new WrappedHttpInputRequest<>(connection); 86 | } 87 | 88 | /** 89 | * {@inheritDoc} 90 | */ 91 | @Override 92 | public HttpInputRequest createPatchRequest() { 93 | connection.setRequestProperty("X-HTTP-Method-Override", "PATCH"); 94 | setMethod(HttpMethod.POST); 95 | 96 | return new WrappedHttpInputRequest<>(connection); 97 | } 98 | 99 | /** 100 | * {@inheritDoc} 101 | */ 102 | @Override 103 | public HttpInputRequest createPutRequest() { 104 | setMethod(HttpMethod.PUT); 105 | 106 | return new WrappedHttpInputRequest<>(connection); 107 | } 108 | 109 | /** 110 | * {@inheritDoc} 111 | */ 112 | @Override 113 | public HttpDeleteRequest createDeleteRequest() { 114 | setMethod(HttpMethod.DELETE); 115 | 116 | return new WrappedHttpDeleteRequest(connection); 117 | } 118 | 119 | private void setMethod(HttpMethod method) { 120 | try { 121 | connection.setRequestMethod(method.name()); 122 | } catch (ProtocolException e) { 123 | e.printStackTrace(); 124 | } 125 | } 126 | 127 | } 128 | -------------------------------------------------------------------------------- /src/test/java/HttpTest.java: -------------------------------------------------------------------------------- 1 | import com.github.diegonighty.http.CloseableConnection; 2 | import com.github.diegonighty.http.HttpConnection.RequestField; 3 | import com.github.diegonighty.http.exception.FailedConnectionException; 4 | import com.github.diegonighty.http.response.HttpResponse; 5 | import com.github.diegonighty.http.serialization.common.JsonSerializationWrapper; 6 | import com.github.diegonighty.http.util.Connections; 7 | import org.junit.jupiter.api.Assertions; 8 | import org.junit.jupiter.api.DisplayName; 9 | import org.junit.jupiter.api.Test; 10 | 11 | import java.io.IOException; 12 | 13 | public class HttpTest { 14 | 15 | @Test 16 | @DisplayName("test_new_get") 17 | void test_new_get() { 18 | String[] params = { "17074", "stats" }; 19 | String url = String.format("https://api.jikan.moe/v3/anime/%s/%s", params[0], params[1]); 20 | 21 | try (CloseableConnection connection = Connections.of(url)) { 22 | 23 | HttpResponse response = connection.open() 24 | .addRequestField(RequestField.USER_AGENT, "Mozilla/5.0") 25 | .createGetRequest() 26 | .setResponseDeserializer(new JsonSerializationWrapper<>(Anime.class)) 27 | .execute(); 28 | 29 | Anime episodes = response.result(); 30 | 31 | Assertions.assertTrue(episodes.getWatching() > 1000); 32 | 33 | } catch (FailedConnectionException | IOException e) { 34 | e.printStackTrace(); 35 | } 36 | 37 | } 38 | 39 | public static class Anime { 40 | 41 | final int watching; 42 | 43 | public Anime(int watching) { 44 | this.watching = watching; 45 | } 46 | 47 | public int getWatching() { 48 | return watching; 49 | } 50 | } 51 | 52 | @Test 53 | @DisplayName("test_new_post") 54 | void test_new_post() { 55 | String url = "https://jsonplaceholder.typicode.com/posts"; 56 | 57 | try (CloseableConnection connection = Connections.of(url)) { 58 | 59 | HttpResponse response = connection.open() 60 | .addRequestField(RequestField.USER_AGENT, "Mozilla/5.0") 61 | .createPostRequest() 62 | .setObject(new Post("sisas", "no", 2)) 63 | .setSerializer(new JsonSerializationWrapper<>(Post.class)) 64 | .execute(); 65 | 66 | int result = response.result(); 67 | 68 | Assertions.assertEquals(201, result); 69 | 70 | } catch (FailedConnectionException | IOException e) { 71 | e.printStackTrace(); 72 | } 73 | } 74 | 75 | @Test 76 | @DisplayName("test_new_delete") 77 | void test_new_delete() { 78 | String url = "https://jsonplaceholder.typicode.com/posts/1"; 79 | 80 | try (CloseableConnection connection = Connections.of(url)) { 81 | 82 | HttpResponse response = connection.open() 83 | .addRequestField(RequestField.USER_AGENT, "Mozilla/5.0") 84 | .createDeleteRequest() 85 | .execute(); 86 | 87 | int result = response.result(); 88 | 89 | Assertions.assertEquals(200, result); 90 | 91 | } catch (FailedConnectionException | IOException e) { 92 | e.printStackTrace(); 93 | } 94 | } 95 | 96 | public static class Post { 97 | 98 | final String title; 99 | final String body; 100 | final int userId; 101 | 102 | public Post(String title, String body, int userId) { 103 | this.title = title; 104 | this.body = body; 105 | this.userId = userId; 106 | } 107 | } 108 | 109 | 110 | } 111 | -------------------------------------------------------------------------------- /docs/deprecated-list.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Deprecated List 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Deprecated API

74 |

Contents

75 |
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/constant-values.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Constant Field Values 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Constant Field Values

74 |

Contents

75 |
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/allclasses-noframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Classes 7 | 8 | 9 | 10 | 11 | 12 |

All Classes

13 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /src/main/java/com/github/diegonighty/http/HttpConnection.java: -------------------------------------------------------------------------------- 1 | package com.github.diegonighty.http; 2 | 3 | import com.github.diegonighty.http.request.types.HttpDeleteRequest; 4 | import com.github.diegonighty.http.request.types.HttpGetRequest; 5 | import com.github.diegonighty.http.request.types.HttpInputRequest; 6 | import com.github.diegonighty.http.util.HeaderMap; 7 | import java.util.Map; 8 | 9 | public interface HttpConnection { 10 | 11 | /** 12 | * Add header to http request 13 | * @param field Field that will be added in the headers of the request 14 | * @param value Value of the field, this will be serialized to string 15 | * @return The same connection with the changes 16 | * @see List of header fields and usage 17 | */ 18 | default HttpConnection addRequestField(RequestField field, V value) { 19 | return addRequestField(field.parse(), value); 20 | } 21 | 22 | /** 23 | * Add header to http request 24 | * @param field Field that will be added in the headers of the request 25 | * @param value Value of the field, this will be serialized to string 26 | * @return The same connection with the changes 27 | * @see List of header fields and usage 28 | */ 29 | HttpConnection addRequestField(String field, V value); 30 | 31 | /** 32 | * Add headers to http request 33 | * @param map Map containing all fields and values, the values will be serialized to string 34 | * @return The same connection with the changes 35 | * @see List of header fields and usage 36 | */ 37 | default HttpConnection addRequestFields(HeaderMap map) { 38 | return addRequestFields(map.getHeaderMap()); 39 | } 40 | 41 | /** 42 | * Add headers to http request 43 | * @param map Map containing all fields and values, the values will be serialized to string 44 | * @return The same connection with the changes 45 | * @see List of header fields and usage 46 | */ 47 | HttpConnection addRequestFields(Map map); 48 | 49 | /** 50 | * Performs a get request 51 | * @return get request 52 | */ 53 | HttpGetRequest createGetRequest(); 54 | 55 | /** 56 | * Performs a post request 57 | * @return post request 58 | */ 59 | HttpInputRequest createPostRequest(); 60 | 61 | /** 62 | * Performs a patch request 63 | * @return patch request (it really is a POST request, but spoofed with a header inside the connection) 64 | */ 65 | HttpInputRequest createPatchRequest(); 66 | 67 | /** 68 | * Performs a put request 69 | * 70 | * @return put request 71 | */ 72 | HttpInputRequest createPutRequest(); 73 | 74 | /** 75 | * Performs a delete request 76 | * 77 | * @return delete request 78 | */ 79 | HttpDeleteRequest createDeleteRequest(); 80 | 81 | /** 82 | * HTTP Methods for the request 83 | * @see List of method request and usage 84 | */ 85 | enum HttpMethod { 86 | 87 | GET, 88 | POST, 89 | PUT, 90 | DELETE 91 | 92 | } 93 | /** 94 | * HTTP headers for the request 95 | * @see List of header fields and usage 96 | */ 97 | enum RequestField { 98 | 99 | A_IM, 100 | ACCEPT, 101 | ACCEPT_CHARSET, 102 | ACCEPT_DATATIME, 103 | ACCEPT_ENCODING, 104 | ACCEPT_LANGUAGE, 105 | ACCESS_CONTROL_REQUEST_METHOD, 106 | ACCESS_CONTROL_REQUEST_HEADERS, 107 | AUTHORIZATION, 108 | CACHE_CONTROL, 109 | CONNECTION, 110 | CONTENT_ENCODING, 111 | CONTENT_LENGTH, 112 | CONTENT_MD5, 113 | CONTENT_TYPE, 114 | COOKIE, 115 | DATE, 116 | EXPECT, 117 | FORWARDED, 118 | FROM, 119 | HOST, 120 | IF_MATCH, 121 | IF_MODIFIED_SINCE, 122 | IF_NONE_MATCH, 123 | IF_RANGE, 124 | IF_UNMODIFIED_SINCE, 125 | MAX_FORWARDS, 126 | ORIGIN, 127 | PRAGMA, 128 | PREFER, 129 | PROXY_AUTHORIZATION, 130 | RANGE, 131 | REFERER, 132 | TE, 133 | TRAILER, 134 | TRANSFER_ENCODING, 135 | USER_AGENT, 136 | UPGRADE, 137 | VIA, 138 | WARNING; 139 | 140 | /** 141 | * parse http header to string 142 | * @return Header parsed 143 | */ 144 | public String parse() { 145 | return toString().replace("_", "-"); 146 | } 147 | } 148 | } 149 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/serialization/common/package-use.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Package com.github.diegonighty.http.serialization.common 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Package
com.github.diegonighty.http.serialization.common

74 |
75 |
No usage of com.github.diegonighty.http.serialization.common
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/serialized-form.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Serialized Form 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Serialized Form

74 |
75 |
76 | 99 |
100 | 101 |
102 | 103 | 104 | 105 | 106 | 107 | 108 | 118 |
119 | 146 | 147 | 148 | 149 | -------------------------------------------------------------------------------- /docs/allclasses-frame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | All Classes 7 | 8 | 9 | 10 | 11 | 12 |

All Classes

13 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 18 | [![Contributors][contributors-shield]][contributors-url] 19 | [![Forks][forks-shield]][forks-url] 20 | [![Stargazers][stars-shield]][stars-url] 21 | [![Issues][issues-shield]][issues-url] 22 | 23 | 24 | 25 | 26 |
27 |

HTTP Wrapper

28 | 29 |

30 | A Java 8 HTTP Wrapper Lib to deserialize the response! 31 |
32 | Explore the docs » 33 |
34 |
35 | Examples 36 | · 37 | Report Bug 38 | · 39 | Request Feature 40 |

41 | 42 | 43 | ## Getting Started 44 | 45 | This is an example of how you may give instructions on setting up your project locally. 46 | To get a local copy up and running follow these simple example steps. 47 | 48 | ### Repository 49 | 50 | This is an example of how to list things you need to use the software and how to install them. 51 | * Gradle 52 | ```groovy 53 | repositories { 54 | maven { 55 | url 'https://jitpack.io' 56 | } 57 | } 58 | 59 | dependencies { 60 | implementation 'com.github.DiegoNighty:http-wrapper:2.5.0' 61 | } 62 | ``` 63 | 64 | * Maven 65 | ```xml 66 | 67 | jitpack.io 68 | https://jitpack.io 69 | 70 | 71 | 72 | com.github.diegonighty 73 | http-wrapper 74 | 2.5.0 75 | 76 | ``` 77 | 78 | 79 | ## Usage 80 | 81 | In the test package [here](https://github.com/DiegoNighty/HTTP-Wrapper/blob/main/src/test/java/HttpTest.java) you can view a example code 82 | 83 | _For more examples, please refer to the [Documentation](https://diegonighty.github.io/HTTP-Wrapper/)_ 84 | 85 | 86 | 87 | 88 | ## Roadmap 89 | 90 | See the [open issues](https://github.com/DiegoNighty/HTTP-Wrapper/issues) for a list of proposed features (and known issues). 91 | 92 | 93 | 94 | 95 | ## Contributing 96 | 97 | Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**. 98 | 99 | 1. Fork the Project 100 | 2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`) 101 | 3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`) 102 | 4. Push to the Branch (`git push origin feature/AmazingFeature`) 103 | 5. Open a Pull Request 104 | 105 | 106 | ## Acknowledgements 107 | * [GitHub Emoji Cheat Sheet](https://www.webpagefx.com/tools/emoji-cheat-sheet) 108 | * [Img Shields](https://shields.io) 109 | * [Choose an Open Source License](https://choosealicense.com) 110 | * [GitHub Pages](https://pages.github.com) 111 | * [Animate.css](https://daneden.github.io/animate.css) 112 | * [Loaders.css](https://connoratherton.com/loaders) 113 | * [Slick Carousel](https://kenwheeler.github.io/slick) 114 | * [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll) 115 | * [Sticky Kit](http://leafo.net/sticky-kit) 116 | * [JVectorMap](http://jvectormap.com) 117 | * [Font Awesome](https://fontawesome.com) 118 | 119 | 120 | 121 | 122 | [contributors-shield]: https://img.shields.io/github/contributors/DiegoNighty/HTTP-Wrapper.svg?style=for-the-badge 123 | [contributors-url]: https://github.com/DiegoNighty/HTTP-Wrapper/graphs/contributors 124 | [forks-shield]: https://img.shields.io/github/forks/DiegoNighty/HTTP-Wrapper.svg?style=for-the-badge 125 | [forks-url]: https://github.com/DiegoNighty/HTTP-Wrapper/network/members 126 | [stars-shield]: https://img.shields.io/github/stars/DiegoNighty/HTTP-Wrapper.svg?style=for-the-badge 127 | [stars-url]: https://github.com/DiegoNighty/HTTP-Wrapper/stargazers 128 | [issues-shield]: https://img.shields.io/github/issues/DiegoNighty/HTTP-Wrapper.svg?style=for-the-badge 129 | [issues-url]: https://github.com/DiegoNighty/HTTP-Wrapper/issues 130 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/util/class-use/StatusCode.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.github.diegonighty.http.util.StatusCode 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
com.github.diegonighty.http.util.StatusCode

74 |
75 |
No usage of com.github.diegonighty.http.util.StatusCode
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/util/class-use/Connections.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.github.diegonighty.http.util.Connections 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
com.github.diegonighty.http.util.Connections

74 |
75 |
No usage of com.github.diegonighty.http.util.Connections
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/class-use/HttpCloseableConnection.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.github.diegonighty.http.HttpCloseableConnection 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
com.github.diegonighty.http.HttpCloseableConnection

74 |
75 |
No usage of com.github.diegonighty.http.HttpCloseableConnection
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/response/class-use/WrappedHttpResponse.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.github.diegonighty.http.response.WrappedHttpResponse 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
com.github.diegonighty.http.response.WrappedHttpResponse

74 |
75 |
No usage of com.github.diegonighty.http.response.WrappedHttpResponse
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 31 |
32 | 59 | 60 |
61 |

Package <Unnamed>

62 |
63 |
64 | 93 |
94 | 95 |
96 | 97 | 98 | 99 | 100 | 101 | 102 | 111 |
112 | 139 | 140 | 141 | 142 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/response/class-use/WrappedNotSerializedResponse.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.github.diegonighty.http.response.WrappedNotSerializedResponse 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
com.github.diegonighty.http.response.WrappedNotSerializedResponse

74 |
75 |
No usage of com.github.diegonighty.http.response.WrappedNotSerializedResponse
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/request/types/class-use/WrappedHttpGetRequest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.github.diegonighty.http.request.types.WrappedHttpGetRequest 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
com.github.diegonighty.http.request.types.WrappedHttpGetRequest

74 |
75 |
No usage of com.github.diegonighty.http.request.types.WrappedHttpGetRequest
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/request/types/class-use/WrappedHttpPostRequest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.github.diegonighty.http.request.types.WrappedHttpInputRequest 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
com.github.diegonighty.http.request.types.WrappedHttpInputRequest

74 |
75 |
No usage of com.github.diegonighty.http.request.types.WrappedHttpInputRequest
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/package-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Class Hierarchy 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
72 |

Hierarchy For Package <Unnamed>

73 | Package Hierarchies: 74 | 77 |
78 |
79 |

Class Hierarchy

80 | 90 |
91 | 92 |
93 | 94 | 95 | 96 | 97 | 98 | 99 | 108 |
109 | 136 | 137 | 138 | 139 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/request/types/class-use/WrappedHttpInputRequest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.github.diegonighty.http.request.types.WrappedHttpInputRequest 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
com.github.diegonighty.http.request.types.WrappedHttpInputRequest

74 |
75 |
No usage of com.github.diegonighty.http.request.types.WrappedHttpInputRequest
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/request/package-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.request Class Hierarchy 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Hierarchy For Package com.github.diegonighty.http.request

74 | Package Hierarchies: 75 | 78 |
79 |
80 |

Interface Hierarchy

81 |
    82 |
  • com.github.diegonighty.http.request.HttpRequest<T>
  • 83 |
84 |
85 | 86 |
87 | 88 | 89 | 90 | 91 | 92 | 93 | 103 |
104 | 131 | 132 | 133 | 134 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/request/types/class-use/WrappedHttpDeleteRequest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.github.diegonighty.http.request.types.WrappedHttpDeleteRequest 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
com.github.diegonighty.http.request.types.WrappedHttpDeleteRequest

74 |
75 |
No usage of com.github.diegonighty.http.request.types.WrappedHttpDeleteRequest
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/serialization/common/class-use/JsonSerializationWrapper.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.github.diegonighty.http.serialization.common.JsonSerializationWrapper 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
com.github.diegonighty.http.serialization.common.JsonSerializationWrapper

74 |
75 |
No usage of com.github.diegonighty.http.serialization.common.JsonSerializationWrapper
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/serialization/common/class-use/DefaultResponseDeserializer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Uses of Class com.github.diegonighty.http.serialization.common.JsonSerializationWrapper 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Uses of Class
com.github.diegonighty.http.serialization.common.JsonSerializationWrapper

74 |
75 |
No usage of com.github.diegonighty.http.serialization.common.JsonSerializationWrapper
76 | 77 |
78 | 79 | 80 | 81 | 82 | 83 | 84 | 94 |
95 | 122 | 123 | 124 | 125 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/terminable/package-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.terminable Class Hierarchy 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Hierarchy For Package com.github.diegonighty.http.terminable

74 | Package Hierarchies: 75 | 78 |
79 |
80 |

Interface Hierarchy

81 |
    82 |
  • java.lang.AutoCloseable 83 | 86 |
  • 87 |
88 |
89 | 90 |
91 | 92 | 93 | 94 | 95 | 96 | 97 | 107 |
108 | 135 | 136 | 137 | 138 | -------------------------------------------------------------------------------- /docs/index-files/index-8.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | I-Index 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
A C D E F G H I J O P R S V W  73 | 74 | 75 |

I

76 |
77 |
isSuccessful(int) - Static method in class com.github.diegonighty.http.util.StatusCode
78 |
 
79 |
80 | A C D E F G H I J O P R S V W 
81 | 82 |
83 | 84 | 85 | 86 | 87 | 88 | 89 | 99 |
100 | 127 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/exception/package-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.exception Class Hierarchy 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Hierarchy For Package com.github.diegonighty.http.exception

74 | Package Hierarchies: 75 | 78 |
79 |
80 |

Class Hierarchy

81 |
    82 |
  • java.lang.Object 83 |
      84 |
    • java.lang.Throwable (implements java.io.Serializable) 85 | 92 |
    • 93 |
    94 |
  • 95 |
96 |
97 | 98 |
99 | 100 | 101 | 102 | 103 | 104 | 105 | 115 |
116 | 143 | 144 | 145 | 146 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/util/package-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.util Class Hierarchy 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Hierarchy For Package com.github.diegonighty.http.util

74 | Package Hierarchies: 75 | 78 |
79 |
80 |

Class Hierarchy

81 |
    82 |
  • java.lang.Object 83 |
      84 |
    • com.github.diegonighty.http.util.Connections
    • 85 |
    • com.github.diegonighty.http.util.HeaderMap
    • 86 |
    • com.github.diegonighty.http.util.StatusCode
    • 87 |
    88 |
  • 89 |
90 |
91 | 92 |
93 | 94 | 95 | 96 | 97 | 98 | 99 | 109 |
110 | 137 | 138 | 139 | 140 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/exception/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.exception 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Package com.github.diegonighty.http.exception

74 |
75 |
76 |
    77 |
  • 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 |
    Exception Summary 
    ExceptionDescription
    FailedConnectionException 
    91 |
  • 92 |
93 |
94 | 95 |
96 | 97 | 98 | 99 | 100 | 101 | 102 | 112 |
113 | 140 | 141 | 142 | 143 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/request/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.request 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Package com.github.diegonighty.http.request

74 |
75 |
76 |
    77 |
  • 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 |
    Interface Summary 
    InterfaceDescription
    HttpRequest<T> 
    91 |
  • 92 |
93 |
94 | 95 |
96 | 97 | 98 | 99 | 100 | 101 | 102 | 112 |
113 | 140 | 141 | 142 | 143 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/serialization/package-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.serialization Class Hierarchy 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Hierarchy For Package com.github.diegonighty.http.serialization

74 | Package Hierarchies: 75 | 78 |
79 |
80 |

Interface Hierarchy

81 | 85 |
86 | 87 |
88 | 89 | 90 | 91 | 92 | 93 | 94 | 104 |
105 | 132 | 133 | 134 | 135 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/terminable/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.terminable 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Package com.github.diegonighty.http.terminable

74 |
75 |
76 |
    77 |
  • 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 |
    Interface Summary 
    InterfaceDescription
    SilentlyTerminable 
    91 |
  • 92 |
93 |
94 | 95 |
96 | 97 | 98 | 99 | 100 | 101 | 102 | 112 |
113 | 140 | 141 | 142 | 143 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/test/package-tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.test Class Hierarchy 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 42 |
43 | 70 | 71 |
72 |

Hierarchy For Package com.github.diegonighty.http.test

73 | Package Hierarchies: 74 | 77 |
78 |
79 |

Class Hierarchy

80 |
    81 |
  • java.lang.Object 82 | 87 |
  • 88 |
89 |
90 | 91 |
92 | 93 | 94 | 95 | 96 | 97 | 98 | 107 |
108 | 135 | 136 | 137 | 138 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/serialization/common/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.serialization.common 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Package com.github.diegonighty.http.serialization.common

74 |
75 |
76 |
    77 |
  • 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 90 | 91 | 92 |
    Class Summary 
    ClassDescription
    JsonSerializationWrapper<T> 88 |
    JsonSerializationWrapper is a default (de)serializer using JSON
    89 |
    93 |
  • 94 |
95 |
96 | 97 |
98 | 99 | 100 | 101 | 102 | 103 | 104 | 114 |
115 | 142 | 143 | 144 | 145 | -------------------------------------------------------------------------------- /docs/com/github/diegonighty/http/util/package-summary.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | com.github.diegonighty.http.util 7 | 8 | 9 | 10 | 11 | 12 | 22 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 32 | 33 | 43 |
44 | 71 | 72 |
73 |

Package com.github.diegonighty.http.util

74 |
75 |
76 |
    77 |
  • 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 |
    Class Summary 
    ClassDescription
    Connections 
    HeaderMap 
    StatusCode 
    99 |
  • 100 |
101 |
102 | 103 |
104 | 105 | 106 | 107 | 108 | 109 | 110 | 120 |
121 | 148 | 149 | 150 | 151 | --------------------------------------------------------------------------------