Class Request<E>
- java.lang.Object
-
- ch.phatec.publibike.network.requests.Request<E>
-
- Direct Known Subclasses:
StationRequest,StationsRequest
public abstract class Request<E> extends Object
- Author:
- thomas pauli | phatec.ch
-
-
Constructor Summary
Constructors Constructor Description Request()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description EexecuteRequest()Executes theRequestand returns the response as the given target class.protected abstract org.apache.http.client.methods.HttpRequestBasegetHttpRequest()Returns the specificHttpRequestBasefor theRequest.protected abstract Class<E>getTargetClass()Returns the target return class for theRequest.
-
-
-
Method Detail
-
getTargetClass
protected abstract Class<E> getTargetClass()
Returns the target return class for theRequest.- Returns:
- The target return class for the
Request.
-
getHttpRequest
protected abstract org.apache.http.client.methods.HttpRequestBase getHttpRequest()
Returns the specificHttpRequestBasefor theRequest.- Returns:
- The specific
HttpRequestBasefor theRequest.
-
-