uCosminexus Application Server, Web Service Development Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
setReadTimeout(Integer interval) method
Description
This method sets the read timeout in milliseconds.
This method functions in the same manner as when you set the ClientConfig.PROPERTY_READ_TIMEOUT property in the property map acquired by using the getProperties() method.
Syntax
public void setReadTimeout(Integer interval)
Parameter
- interval
- This is the timeout value for reading the property. If you specify null or 0, the operation does not time out.
Return value
Notes
- The client operation based on the value specified in the interval parameter is the same as that for the setReadTimeout() method of the HttpURLConnection class. For details, see the JDK documentation.
- The JAX-RS engine does not validate the value specified in the interval parameter. Prior to the HTTP communication, the value will be copied as is to HttpURLConnection. To specify a value in the interval parameter, follow the description of the setReadTimeout() method of the HttpURLConnection class of Java SE.
- If the client property map already contains the value specified in ClientConfig.PROPERTY_READ_TIMEOUT, the value specified in the interval parameter is overwritten.
- If an exception is thrown during the processing of an HTTP request or an HTTP response due to the value specified in the interval parameter, an error (KDJJ18888-E) occurs and the ClientHandlerException exception that wraps this exception is thrown.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.