> what if want to parse date from iso8601 string? should I write parser class

The pattern indeed seems to be to write a parser class, but that should be 
relatively easy:

1. Create a response parser such as 
[`ParseSystemAndUserMetadataFromHeaders`](https://github.com/jclouds/jclouds/blob/master/blobstore/src/main/java/org/jclouds/blobstore/functions/ParseSystemAndUserMetadataFromHeaders.java)
 that gets a 
[`DateService`](http://javadocs.jclouds.cloudbees.net/org/jclouds/date/DateService.html)
 injected. Use the `DateService` methods to parse the input. Please also add a 
unit test for the handler
2. Add a `@ResponseParser` to your API call, referring to your parser. See e.g. 
the current 
[`EventApi`](https://github.com/jclouds/jclouds/blob/master/apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/EventApi.java#L56)

Hope that helps!

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/12#issuecomment-21675987

Reply via email to