public class TimeoutWiederholungHttpInvokerRequestExecutor
extends org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
SimpleHttpInvokerRequestExecutor which allows
to configure the timeout and the times a call is repeated.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 and Description |
|---|
TimeoutWiederholungHttpInvokerRequestExecutor(AufrufKontextVerwalter<?> aufrufKontextVerwalter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.remoting.support.RemoteInvocationResult |
doExecuteRequest(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config,
ByteArrayOutputStream baos) |
protected void |
prepareConnection(HttpURLConnection con,
int contentLength) |
void |
setAnzahlWiederholungen(int anzahlWiederholungen)
This defines how often the call is to be repeated in the event of a timeout.
|
void |
setTimeout(int timeout)
Sets the timeout in milliseconds.
|
void |
setWiederholungenAbstand(int wiederholungenAbstand)
This defines how long to wait between two call repetitions.
|
isGzipResponse, openConnection, readResponseBody, setConnectTimeout, setReadTimeout, validateResponse, writeRequestBodycreateObjectInputStream, decorateInputStream, decorateOutputStream, doReadRemoteInvocationResult, doWriteRemoteInvocation, executeRequest, getBeanClassLoader, getByteArrayOutputStream, getContentType, isAcceptGzipEncoding, readRemoteInvocationResult, setAcceptGzipEncoding, setBeanClassLoader, setContentType, writeRemoteInvocationpublic TimeoutWiederholungHttpInvokerRequestExecutor(AufrufKontextVerwalter<?> aufrufKontextVerwalter)
AufrufKontextVerwalter bean.aufrufKontextVerwalter - new value for the AufrufKontextVerwalter.protected org.springframework.remoting.support.RemoteInvocationResult doExecuteRequest(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config,
ByteArrayOutputStream baos)
throws IOException,
ClassNotFoundException
doExecuteRequest in class org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutorIOExceptionClassNotFoundExceptionprotected void prepareConnection(HttpURLConnection con, int contentLength) throws IOException
prepareConnection in class org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutorIOExceptionpublic void setTimeout(int timeout)
timeout - timeout in milliseconds.URLConnection.setConnectTimeout(int),
URLConnection.setReadTimeout(int)public void setAnzahlWiederholungen(int anzahlWiederholungen)
anzahlWiederholungen - number of repetitions in case of a timeout.public void setWiederholungenAbstand(int wiederholungenAbstand)
wiederholungenAbstand - break between repetitions in milliseconds.setAnzahlWiederholungen(int)Copyright © 2022. All rights reserved.