com.xebialabs.deployit.engine.xml
Class DateTimeAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,org.joda.time.DateTime>
      extended by com.xebialabs.deployit.engine.xml.DateTimeAdapter
All Implemented Interfaces:
org.jboss.resteasy.spi.StringConverter<org.joda.time.DateTime>

@Provider
public class DateTimeAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,org.joda.time.DateTime>
implements org.jboss.resteasy.spi.StringConverter<org.joda.time.DateTime>


Field Summary
static java.lang.String FALLBACK
           
protected static java.lang.String[] rfc822DateFormats
          List of possible RFC822 date formats.
 
Constructor Summary
DateTimeAdapter()
           
 
Method Summary
 org.joda.time.DateTime fromString(java.lang.String rfc822DateFormat)
           
 java.lang.String marshal(org.joda.time.DateTime v)
           
 java.lang.String toString(org.joda.time.DateTime value)
           
 org.joda.time.DateTime unmarshal(java.lang.String v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FALLBACK

public static final java.lang.String FALLBACK
See Also:
Constant Field Values

rfc822DateFormats

protected static final java.lang.String[] rfc822DateFormats
List of possible RFC822 date formats. From .

Constructor Detail

DateTimeAdapter

public DateTimeAdapter()
Method Detail

unmarshal

public org.joda.time.DateTime unmarshal(java.lang.String v)
Specified by:
unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,org.joda.time.DateTime>

marshal

public java.lang.String marshal(org.joda.time.DateTime v)
Specified by:
marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<java.lang.String,org.joda.time.DateTime>

fromString

public org.joda.time.DateTime fromString(java.lang.String rfc822DateFormat)
Specified by:
fromString in interface org.jboss.resteasy.spi.StringConverter<org.joda.time.DateTime>

toString

public java.lang.String toString(org.joda.time.DateTime value)
Specified by:
toString in interface org.jboss.resteasy.spi.StringConverter<org.joda.time.DateTime>