Class TimeoutWiederholungHttpInvokerRequestExecutor
java.lang.Object
org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
de.bund.bva.isyfact.serviceapi.core.httpinvoker.TimeoutWiederholungHttpInvokerRequestExecutor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.remoting.httpinvoker.HttpInvokerRequestExecutor
@Deprecated
public class TimeoutWiederholungHttpInvokerRequestExecutor
extends org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
Deprecated.
This module is deprecated and will be removed in a future release.
It is recommended to use REST according to IsyFacts REST Concept instead.
Extension to the Spring
SimpleHttpInvokerRequestExecutor which allows
to configure the timeout and the times a call is repeated.-
Field Summary
Fields inherited from class org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
CONTENT_TYPE_SERIALIZED_OBJECT, ENCODING_GZIP, HTTP_HEADER_ACCEPT_ENCODING, HTTP_HEADER_ACCEPT_LANGUAGE, HTTP_HEADER_CONTENT_ENCODING, HTTP_HEADER_CONTENT_LENGTH, HTTP_HEADER_CONTENT_TYPE, HTTP_METHOD_POST, logger -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructor.TimeoutWiederholungHttpInvokerRequestExecutor(AufrufKontextVerwalter<?> aufrufKontextVerwalter) Deprecated.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.remoting.support.RemoteInvocationResultdoExecuteRequest(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, ByteArrayOutputStream baos) Deprecated.protected voidprepareConnection(HttpURLConnection con, int contentLength) Deprecated.voidsetAnzahlWiederholungen(int anzahlWiederholungen) Deprecated.This defines how often the call is to be repeated in the event of a timeout.voidsetTimeout(int timeout) Deprecated.Sets the timeout in milliseconds.voidsetWiederholungenAbstand(int wiederholungenAbstand) Deprecated.This defines how long to wait between two call repetitions.Methods inherited from class org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
isGzipResponse, openConnection, readResponseBody, setConnectTimeout, setReadTimeout, validateResponse, writeRequestBodyMethods inherited from class org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor
createObjectInputStream, decorateInputStream, decorateOutputStream, doReadRemoteInvocationResult, doWriteRemoteInvocation, executeRequest, getBeanClassLoader, getByteArrayOutputStream, getContentType, isAcceptGzipEncoding, readRemoteInvocationResult, setAcceptGzipEncoding, setBeanClassLoader, setContentType, writeRemoteInvocation
-
Constructor Details
-
TimeoutWiederholungHttpInvokerRequestExecutor
public TimeoutWiederholungHttpInvokerRequestExecutor()Deprecated.Constructor. Sets theAufrufKontextVerwalterbean. -
TimeoutWiederholungHttpInvokerRequestExecutor
public TimeoutWiederholungHttpInvokerRequestExecutor(@Nullable AufrufKontextVerwalter<?> aufrufKontextVerwalter) Deprecated.Constructor. Sets theAufrufKontextVerwalterbean.- Parameters:
aufrufKontextVerwalter- new value for theAufrufKontextVerwalter.
-
-
Method Details
-
doExecuteRequest
protected org.springframework.remoting.support.RemoteInvocationResult doExecuteRequest(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, ByteArrayOutputStream baos) throws IOException, ClassNotFoundException Deprecated.- Overrides:
doExecuteRequestin classorg.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor- Throws:
IOExceptionClassNotFoundException
-
prepareConnection
Deprecated.- Overrides:
prepareConnectionin classorg.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor- Throws:
IOException
-
setTimeout
public void setTimeout(int timeout) Deprecated.Sets the timeout in milliseconds. The timeout is used when establishing and reading via the HTTP connection.- Parameters:
timeout- timeout in milliseconds.- See Also:
-
setAnzahlWiederholungen
public void setAnzahlWiederholungen(int anzahlWiederholungen) Deprecated.This defines how often the call is to be repeated in the event of a timeout. Default value is 0.- Parameters:
anzahlWiederholungen- number of repetitions in case of a timeout.
-
setWiederholungenAbstand
public void setWiederholungenAbstand(int wiederholungenAbstand) Deprecated.This defines how long to wait between two call repetitions. Default value is 0.- Parameters:
wiederholungenAbstand- break between repetitions in milliseconds.- See Also:
-