uCosminexus Application Server, Web Service Development Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
getLastModified() method
Description
This method acquires the value of the Last-Modified HTTP header.
Syntax
public Date getLastModified()
Parameter
Return value
The method returns the value of the Last-Modified HTTP header.
Notes
- The method returns null if the HTTP response does not contain the Last-Modified HTTP header or if HttpURLConnection returns null as the value of the Last-Modified HTTP header.
- If the value of the Last-Modified HTTP header is an empty string or if the value does not comply with the following 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.