uCosminexus Application Server, Web Service Development Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
You must note the following points when using the methods of the EntityTag class:
- You cannot generate the EntityTag instance of weak with the EntityTag(String value) constructor. Do not specify strings such as "W/"tagValue"" in arguments of the EntityTag(String value) constructor.
- When you use the valueOf(String value) method, quote the tag that you want to specify in the method argument. The operation is not guaranteed if you do not use quotation marks. Note the following specification example:
String value = "\"entityTag\"";
EntityTag entityTag = EntityTag.valueOf(value);
- When generating the EntityTag instance of weak by using the valueOf(String value) method, add the capital letter W before the tag to be specified in the argument. Note the following example:
String value = "W/\"weakEntityTag\"";
EntityTag entityTag = EntityTag.valueOf(value);
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.