Class RESTRequestProcessorImpl
java.lang.Object
se.liu.ida.hefquin.federation.access.impl.reqproc.RESTRequestProcessorImpl
- All Implemented Interfaces:
RESTRequestProcessor,RequestProcessor<RESTRequest,StringResponse, RESTEndpoint>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates the request processor without any thresholds for timeouts.RESTRequestProcessorImpl(long connectionTimeout, long overallTimeout) The given timeouts are specified in milliseconds. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.liu.ida.hefquin.federation.access.impl.reqproc.RESTRequestProcessor
isSupportedMemberType, isSupportedRequestType, isSupportedResponseType
-
Field Details
-
httpClient
-
overallTimeout
protected final long overallTimeout
-
-
Constructor Details
-
RESTRequestProcessorImpl
public RESTRequestProcessorImpl()Creates the request processor without any thresholds for timeouts. If you want it with timeouts, use the other constructor. -
RESTRequestProcessorImpl
public RESTRequestProcessorImpl(long connectionTimeout, long overallTimeout) The given timeouts are specified in milliseconds. Any value <= 0 means no timeout.
-
-
Method Details
-
performRequest
public StringResponse performRequest(RESTRequest req, RESTEndpoint fm) throws FederationAccessException - Specified by:
performRequestin interfaceRequestProcessor<RESTRequest,StringResponse, RESTEndpoint> - Throws:
FederationAccessException
-