File tree Expand file tree Collapse file tree
src/main/java/com/github/diegonighty/http/request/types Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import com .github .diegonighty .http .request .HttpRequest ;
44import com .github .diegonighty .http .serialization .RequestSerializer ;
55
6- public interface HttpPostRequest <T > extends HttpRequest <Integer > {
6+ public interface HttpInputRequest <T > extends HttpRequest <Integer > {
77
88 /**
99 * Set custom serializer from object to JSON
1010 *
1111 * @param serializer convert object to JSON
1212 * @return the same http request with the changes
1313 */
14- HttpPostRequest <T > setSerializer (RequestSerializer <T > serializer );
14+ HttpInputRequest <T > setSerializer (RequestSerializer <T > serializer );
1515
1616 /**
1717 * Set the object to post
1818 *
1919 * @param object to post
2020 * @return the same http request with the changes
2121 */
22- HttpPostRequest <T > setObject (T object );
22+ HttpInputRequest <T > setObject (T object );
2323
2424}
Original file line number Diff line number Diff line change 99import java .io .IOException ;
1010import java .net .HttpURLConnection ;
1111
12- public class WrappedHttpPostRequest <T > implements HttpPostRequest <T > {
12+ public class WrappedHttpInputRequest <T > implements HttpInputRequest <T > {
1313
1414 private final HttpURLConnection connection ;
1515 private RequestSerializer <T > serializer ;
1616
1717 private T object ;
1818
19- public WrappedHttpPostRequest (HttpURLConnection connection ) {
19+ public WrappedHttpInputRequest (HttpURLConnection connection ) {
2020 this .connection = connection ;
2121 }
2222
2323 /**
2424 * {@inheritDoc}
2525 */
2626 @ Override
27- public HttpPostRequest <T > setSerializer (RequestSerializer <T > serializer ) {
27+ public HttpInputRequest <T > setSerializer (RequestSerializer <T > serializer ) {
2828 this .serializer = serializer ;
2929 return this ;
3030 }
@@ -33,7 +33,7 @@ public HttpPostRequest<T> setSerializer(RequestSerializer<T> serializer) {
3333 * {@inheritDoc}
3434 */
3535 @ Override
36- public HttpPostRequest <T > setObject (T object ) {
36+ public HttpInputRequest <T > setObject (T object ) {
3737 this .object = object ;
3838 return this ;
3939 }
You can’t perform that action at this time.
0 commit comments