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

    Constructors
    Constructor
    Description
    Deprecated.
    Constructor.
    Deprecated.
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.remoting.support.RemoteInvocationResult
    doExecuteRequest(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, ByteArrayOutputStream baos)
    Deprecated.
     
    protected void
    prepareConnection(HttpURLConnection con, int contentLength)
    Deprecated.
     
    void
    setAnzahlWiederholungen(int anzahlWiederholungen)
    Deprecated.
    This defines how often the call is to be repeated in the event of a timeout.
    void
    setTimeout(int timeout)
    Deprecated.
    Sets the timeout in milliseconds.
    void
    setWiederholungenAbstand(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, writeRequestBody

    Methods inherited from class org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor

    createObjectInputStream, decorateInputStream, decorateOutputStream, doReadRemoteInvocationResult, doWriteRemoteInvocation, executeRequest, getBeanClassLoader, getByteArrayOutputStream, getContentType, isAcceptGzipEncoding, readRemoteInvocationResult, setAcceptGzipEncoding, setBeanClassLoader, setContentType, writeRemoteInvocation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TimeoutWiederholungHttpInvokerRequestExecutor

      public TimeoutWiederholungHttpInvokerRequestExecutor()
      Deprecated.
      Constructor. Sets the AufrufKontextVerwalter bean.
    • TimeoutWiederholungHttpInvokerRequestExecutor

      public TimeoutWiederholungHttpInvokerRequestExecutor(@Nullable AufrufKontextVerwalter<?> aufrufKontextVerwalter)
      Deprecated.
      Constructor. Sets the AufrufKontextVerwalter bean.
      Parameters:
      aufrufKontextVerwalter - new value for the AufrufKontextVerwalter.
  • Method Details

    • doExecuteRequest

      protected org.springframework.remoting.support.RemoteInvocationResult doExecuteRequest(org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration config, ByteArrayOutputStream baos) throws IOException, ClassNotFoundException
      Deprecated.
      Overrides:
      doExecuteRequest in class org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor
      Throws:
      IOException
      ClassNotFoundException
    • prepareConnection

      protected void prepareConnection(HttpURLConnection con, int contentLength) throws IOException
      Deprecated.
      Overrides:
      prepareConnection in class org.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: