com.sun.xml.ws.transport.http.client
Class RfcDateParser

java.lang.Object
  extended by com.sun.xml.ws.transport.http.client.RfcDateParser

final class RfcDateParser
extends Object

A parser for date strings commonly found in http and email headers that follow various RFC conventions. Given a date-string, the parser will attempt to parse it by trying matches with a set of patterns, returning null on failure, a Date object on success.


Field Summary
(package private)  String dateString
           
(package private) static String[] gmtStandardFormats
           
(package private) static String[] standardFormats
           
 
Constructor Summary
RfcDateParser(String dateString)
           
 
Method Summary
 Date getDate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

standardFormats

static final String[] standardFormats

gmtStandardFormats

static final String[] gmtStandardFormats

dateString

String dateString
Constructor Detail

RfcDateParser

public RfcDateParser(String dateString)
Method Detail

getDate

public Date getDate()