Package com.ibm.wsspi.http
Interface HttpDateFormat
public interface HttpDateFormat
Class to handle formatting and parsing of dates in the various allowed
 HTTP formats.
 
- 
Method SummaryModifier and TypeMethodDescriptionGet the current time formatted for standard ASCII.getASCIITime(long range) Get the current time formatted for standard ASCII, this will use a cached format value if that value is within the input range of the current time.getASCIITime(Date inDate) Get an ASCII complaint date string based on the given Date object.byte[]Get the current time formatted for standard ASCII.byte[]getASCIITimeAsBytes(long range) Get the current time formatted for standard ASCII, this will use a cached format value if that value is within the input range of the current time.Get the current time formatted for NCSA.getNCSATime(long range) Get the current time formatted for NCSA, this will use a cached format value if that value is within the input range of the current time.getNCSATime(Date inDate) Format the given Date object in the NCSA format.byte[]Get the current time formatted for NCSA.byte[]getNCSATimeAsBytes(long range) Get the current time formatted for NCSA, this will use a cached format value if that value is within the input range of the current time.Get the current time formatted for RFC 1036.getRFC1036Time(long range) Get the current time formatted for RFC 1036, this will use a cached format value if that value is within the input range of the current time.getRFC1036Time(Date inDate) Get an RFC1036 compliant date string based on the given Date object.byte[]Get the current time formatted for RFC 1036.byte[]getRFC1036TimeAsBytes(long range) Get the current time formatted for RFC 1036, this will use a cached format value if that value is within the input range of the current time.Get an RFC1123 compliant date string based on the current time.getRFC1123Time(long range) Get the time formatted for RFC 1123, this will use a cached format value if that value is within the input range of the current time.getRFC1123Time(Date inDate) Get an RFC1123 compliant date string based on the given Date object.byte[]Get the current time formatted for RFC 1123.byte[]getRFC1123TimeAsBytes(long range) Get the time formatted for RFC 1123, this will use a cached format value if that value is within the input range of the current time.Get the current time formatted for RFC 2109.getRFC2109Time(long range) Get the current time formatted for RFC 2109, this will use a cached format value if that value is within the input range of the current time.getRFC2109Time(Date inDate) Get an RFC2109 compliant date string based on the given Date object.byte[]Get the current time formatted for RFC 2109.byte[]getRFC2109TimeAsBytes(long range) Get the current time formatted for RFC 2109, this will use a cached format value if that value is within the input range of the current time.parseASCIITime(String input) Parse the input string into an ASCII Date object.parseRFC1036Time(String input) Parse the input string into an RFC1036 Date object.parseRFC1123Time(String input) Parse in the input string into an RFC1123 Date object.parseRFC2109Time(String input) Parse the input string into an RFC2109 Date object.parseTime(byte[] inBytes) Parse the input data into the matching Date format.Parse the input data into the matching Date format.
- 
Method Details- 
getRFC1123TimeAsBytesbyte[] getRFC1123TimeAsBytes()Get the current time formatted for RFC 1123.
 EEE, dd MMM yyyy HH:mm:ss z- Returns:
- byte[]
 
- 
getRFC1123TimeAsBytesbyte[] getRFC1123TimeAsBytes(long range) Get the time formatted for RFC 1123, this will use a cached format value if that value is within the input range of the current time.
 EEE, dd MMM yyyy HH:mm:ss z- Parameters:
- range- (milliseconds, -1 means use default, 0 means right now)
- Returns:
- byte[]
 
- 
getRFC1123TimeString getRFC1123Time()Get an RFC1123 compliant date string based on the current time.
 EEE, dd MMM yyyy HH:mm:ss z- Returns:
- String
 
- 
getRFC1123TimeGet the time formatted for RFC 1123, this will use a cached format value if that value is within the input range of the current time.
 EEE, dd MMM yyyy HH:mm:ss z- Parameters:
- range- (milliseconds, -1 means use default, 0 means right now)
- Returns:
- String
 
- 
getRFC1123TimeGet an RFC1123 compliant date string based on the given Date object.- Parameters:
- inDate-
- Returns:
- String
 
- 
getRFC1036TimeAsBytesbyte[] getRFC1036TimeAsBytes()Get the current time formatted for RFC 1036.
 EEEEEEEEE, dd-MMM-yy HH:mm:ss z- Returns:
- byte[]
 
- 
getRFC1036TimeAsBytesbyte[] getRFC1036TimeAsBytes(long range) Get the current time formatted for RFC 1036, this will use a cached format value if that value is within the input range of the current time.
 EEEEEEEEE, dd-MMM-yy HH:mm:ss z- Parameters:
- range- (milliseconds, -1 means use default, 0 means right now)
- Returns:
- byte[]
 
- 
getRFC1036TimeString getRFC1036Time()Get the current time formatted for RFC 1036.
 EEEEEEEEE, dd-MMM-yy HH:mm:ss z- Returns:
- String
 
- 
getRFC1036TimeGet the current time formatted for RFC 1036, this will use a cached format value if that value is within the input range of the current time.
 EEEEEEEEE, dd-MMM-yy HH:mm:ss z- Parameters:
- range- (milliseconds, -1 means use default, 0 means right now)
- Returns:
- String
 
- 
getRFC1036TimeGet an RFC1036 compliant date string based on the given Date object.- Parameters:
- inDate-
- Returns:
- String
 
- 
getRFC2109TimeAsBytesbyte[] getRFC2109TimeAsBytes()Get the current time formatted for RFC 2109.
 EEE, dd-MMM-YY HH:mm:ss GMT- Returns:
- byte[]
 
- 
getRFC2109TimeAsBytesbyte[] getRFC2109TimeAsBytes(long range) Get the current time formatted for RFC 2109, this will use a cached format value if that value is within the input range of the current time.
 EEE, dd-MMM-YY HH:mm:ss GMT- Parameters:
- range- (milliseconds, -1 means use default, 0 means right now)
- Returns:
- byte[]
 
- 
getRFC2109TimeString getRFC2109Time()Get the current time formatted for RFC 2109.
 EEE, dd-MMM-YY HH:mm:ss GMT- Returns:
- String
 
- 
getRFC2109TimeGet the current time formatted for RFC 2109, this will use a cached format value if that value is within the input range of the current time.
 EEE, dd-MMM-YY HH:mm:ss GMT- Parameters:
- range- (milliseconds, -1 means use default, 0 means right now)
- Returns:
- String
 
- 
getRFC2109TimeGet an RFC2109 compliant date string based on the given Date object.- Parameters:
- inDate-
- Returns:
- String
 
- 
getASCIITimeAsBytesbyte[] getASCIITimeAsBytes()Get the current time formatted for standard ASCII.
 EEE MMM d HH:mm:ss yyyy- Returns:
- byte[]
 
- 
getASCIITimeAsBytesbyte[] getASCIITimeAsBytes(long range) Get the current time formatted for standard ASCII, this will use a cached format value if that value is within the input range of the current time.
 EEE MMM d HH:mm:ss yyyy- Parameters:
- range- (milliseconds, -1 means use default, 0 means right now)
- Returns:
- byte[]
 
- 
getASCIITimeString getASCIITime()Get the current time formatted for standard ASCII.
 EEE MMM d HH:mm:ss yyyy- Returns:
- String
 
- 
getASCIITimeGet the current time formatted for standard ASCII, this will use a cached format value if that value is within the input range of the current time.
 EEE MMM d HH:mm:ss yyyy- Parameters:
- range- (milliseconds, -1 means use default, 0 means right now)
- Returns:
- String
 
- 
getASCIITimeGet an ASCII complaint date string based on the given Date object.- Parameters:
- inDate-
- Returns:
- String
 
- 
getNCSATimeAsBytesbyte[] getNCSATimeAsBytes()Get the current time formatted for NCSA.
 dd/MMM/yyyy:HH:mm:ss Z- Returns:
- byte[]
 
- 
getNCSATimeAsBytesbyte[] getNCSATimeAsBytes(long range) Get the current time formatted for NCSA, this will use a cached format value if that value is within the input range of the current time.
 dd/MMM/yyyy:HH:mm:ss Z- Parameters:
- range- (milliseconds, -1 means use default, 0 means right now)
- Returns:
- byte[]
 
- 
getNCSATimeString getNCSATime()Get the current time formatted for NCSA.
 dd/MMM/yyyy:HH:mm:ss Z- Returns:
- String
 
- 
getNCSATimeGet the current time formatted for NCSA, this will use a cached format value if that value is within the input range of the current time.
 dd/MMM/yyyy:HH:mm:ss Z- Parameters:
- range- (milliseconds, -1 means use default, 0 means right now)
- Returns:
- String
 
- 
getNCSATimeFormat the given Date object in the NCSA format.- Parameters:
- inDate-
- Returns:
- String
 
- 
parseRFC1123TimeParse in the input string into an RFC1123 Date object.- Parameters:
- input-
- Returns:
- Date
- Throws:
- ParseException
 
- 
parseRFC1036TimeParse the input string into an RFC1036 Date object.- Parameters:
- input-
- Returns:
- Date
- Throws:
- ParseException
 
- 
parseRFC2109TimeParse the input string into an RFC2109 Date object.- Parameters:
- input-
- Returns:
- Date
- Throws:
- ParseException
 
- 
parseASCIITimeParse the input string into an ASCII Date object.- Parameters:
- input-
- Returns:
- Date
- Throws:
- ParseException
 
- 
parseTimeParse the input data into the matching Date format. It will try RFC1123, then RFC1036, and finally ASCII until it finds a match, or it throws a ParseException if there was no match.- Parameters:
- input-
- Returns:
- Date
- Throws:
- ParseException
 
- 
parseTimeParse the input data into the matching Date format. It will try RFC1123, then RFC1036, and finally ASCII until it finds a match, or it throws a ParseException if there was no match.- Parameters:
- inBytes-
- Returns:
- Date
- Throws:
- ParseException
 
 
-