spring-framework / org.springframework.remoting.httpinvoker / SimpleHttpInvokerRequestExecutor

SimpleHttpInvokerRequestExecutor

open class SimpleHttpInvokerRequestExecutor : AbstractHttpInvokerRequestExecutor

HttpInvokerRequestExecutor implementation that uses standard J2SE facilities to execute POST requests, without support for HTTP authentication or advanced configuration options.

Designed for easy subclassing, customizing specific template methods. However, consider HttpComponentsHttpInvokerRequestExecutor for more sophisticated needs: The J2SE HttpURLConnection is rather limited in its capabilities.

Author
Juergen Hoeller

Since
1.1

See Also
java.net.HttpURLConnection

Constructors

<init>

SimpleHttpInvokerRequestExecutor()

HttpInvokerRequestExecutor implementation that uses standard J2SE facilities to execute POST requests, without support for HTTP authentication or advanced configuration options.

Designed for easy subclassing, customizing specific template methods. However, consider HttpComponentsHttpInvokerRequestExecutor for more sophisticated needs: The J2SE HttpURLConnection is rather limited in its capabilities.

Functions

setConnectTimeout

open fun setConnectTimeout(connectTimeout: Int): Unit

Set the underlying URLConnection's connect timeout (in milliseconds). A timeout value of 0 specifies an infinite timeout.

Default is the system's default timeout.

setReadTimeout

open fun setReadTimeout(readTimeout: Int): Unit

Set the underlying URLConnection's read timeout (in milliseconds). A timeout value of 0 specifies an infinite timeout.

Default is the system's default timeout.