|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HeaderProvider<T>
A provider that supports the conversion of an HTTP header, of type T, to and
from a String
.
Method Summary | |
---|---|
T |
fromString(java.lang.String header)
Convert a String to a HTTP header of type T. |
boolean |
supports(java.lang.Class<?> type)
Ascertain if the HeaderProvider supports a particular type. |
java.lang.String |
toString(T header)
Convert a HTTP header of type T to a String . |
Method Detail |
---|
boolean supports(java.lang.Class<?> type)
type
- the type that is to be supported.
java.lang.String toString(T header)
String
.
header
- the HTTP header of type T
String
T fromString(java.lang.String header) throws java.text.ParseException
String
to a HTTP header of type T.
header
- the HTTP header as a String
java.text.ParseException
- if the header cannot be parsed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |