uCosminexus Application Server, Web Service Development Guide
The Client object contains a changeable property map that stores properties and features.
Hereafter, the term property is used collectively for both, property and features.
A changeable property map is initialized when creating a Client object. You can use any of the following methods to initialize a property:
For details on an action definition file, see 13.1 Action definition file.
With the four properties related to the HttpURLConnection class, you can change the property map acquired with the getProperties() method of the Client class, and set the property map by using the setter method corresponding to each property.
Only the four properties related to HttpURLConnection have corresponding setter methods. When setting a property, change the property map acquired with the getProperties() method of the Client class.
The following figure shows the structure of a changeable property map.
For the list of supported properties, see 25.1.1 Supported properties and features.
Figure 11-3 Structure of a changeable property map
Prior to the HTTP communication, the JAX-RS engine directly copies the values of the four properties related to the HttpURLConnection class, shown in the figure, to HttpURLConnection (however, does not verify the values). If the values are invalid, the HttpURLConnection class might throw an exception before or during the HTTP communication. When the values specified are null, those are not copied and are ignored.
The ClientRequest class also contains a changeable property map of the same format. For this reason, when establishing an HTTP communication by using the handle() method of the Client class, a user program can also set the property through the ClientRequest object. The following figure shows the mechanism.
Figure 11-4 Mechanism of copying the changeable property map
The JAX-RS engine copies the property included in the property map of the ClientRequest object to the property map of the client object only when the property map of the Client object does not contain the same property.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.