uCosminexus Application Server, Web Service Development Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
getResponseDate() method
Description
This method acquires the value of the Date HTTP header.
Syntax
public Date getResponseDate()
Parameter
Return value
The method returns the value of the Date HTTP header.
Notes
- The method returns null if the HTTP response does not contain the Date HTTP header or if HttpURLConnection returns null as the value of the Date HTTP header.
- If the value of the Date HTTP header is an empty string or if the value is not compliant with the following date formats, the IllegalArgumentException exception is thrown:
- EEE, dd MMM yyyy HH:mm:ss zzz
- EEEE, dd-MMM-yy HH:mm:ss zzz
- EEE MMM d HH:mm:ss yyyy
For each pattern character in the Date format, especially the locale-dependant 'E' and 'M', see the information on the SimpleDateFormat class of the Java SE specifications.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.