Package org.apache.cxf.jaxrs.impl
Class RetryAfterHeaderProvider
- java.lang.Object
-
- org.apache.cxf.jaxrs.impl.RetryAfterHeaderProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<Duration>
public class RetryAfterHeaderProvider extends Object implements javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<Duration>
Retry-After = "Retry-After" ":" ( HTTP-date | delta-seconds ) HTTP-date = IMF-fixdate / obs-date An example of the preferred format is Sun, 06 Nov 1994 08:49:37 GMT ; IMF-fixdate (RFC 822) Examples of the two obsolete formats are Sunday, 06-Nov-94 08:49:37 GMT ; obsolete RFC 850 format Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format
-
-
Constructor Summary
Constructors Constructor Description RetryAfterHeaderProvider()RetryAfterHeaderProvider(Clock clock)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DurationfromString(String value)StringtoString(Duration value)static DurationvalueOf(String value)static DurationvalueOf(Clock clock, String value)
-
-
-
Constructor Detail
-
RetryAfterHeaderProvider
public RetryAfterHeaderProvider()
-
RetryAfterHeaderProvider
public RetryAfterHeaderProvider(Clock clock)
-
-
Method Detail
-
fromString
public Duration fromString(String value)
- Specified by:
fromStringin interfacejavax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<Duration>
-
toString
public String toString(Duration value)
- Specified by:
toStringin interfacejavax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<Duration>
-
-