uCosminexus Application Server, Web Service Development Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
setChunkedEncodingSize(Integer chunkSize) method
Description
This method specifies the settings to send an HTTP request entity by chunked transfer encoding in the specified chunk size.
This method functions in the same manner as when you set the ClientConfig.PROPERTY_CHUNKED_ENCODING_SIZE property in the property map acquired with the getProperties() method.
Syntax
public void setChunkedEncodingSize(Integer chunkSize)
Parameter
- chunkSize
- This parameter specifies the chunk size. If you specify 0 or less, the default value is applied.
Return value
Notes
- The client operation based on the value specified in the chunkSize parameter is the same as that for the setChunkedStreamingMode() method of the HttpURLConnection class. For details, see the JDK documentation.
- The JAX-RS engine does not validate the value specified in the chunkSize parameter. Prior to the HTTP communication, the value will be copied as is to HttpURLConnection. To specify a value in the chunkSize parameter, follow the description of the setChunkedStreamingMode() method of the HttpURLConnection class of Java SE.
- If the client property map already contains the value specified in ClientConfig.PROPERTY_CHUNKED_ENCODING_SIZE, the value specified in the chunkSize 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 chunkSize parameter, an error (KDJJ18888-E) occurs and the ClientHandlerException exception that wraps this exception is thrown.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.