@Singleton public class StringHeaderProvider extends Object implements HeaderDelegateProvider<String>
String header delegate provider.| Constructor and Description |
|---|
StringHeaderProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
fromString(String header)
Parse the supplied value and create an instance of
T. |
boolean |
supports(Class<?> type)
Ascertain if the Provider supports a particular type.
|
String |
toString(String header)
Convert the supplied value to a String.
|
public boolean supports(Class<?> type)
HeaderDelegateProvidersupports in interface HeaderDelegateProvider<String>type - the type that is to be supported.public String toString(String header)
RuntimeDelegate.HeaderDelegatetoString in interface RuntimeDelegate.HeaderDelegate<String>header - the value of type T.public String fromString(String header)
RuntimeDelegate.HeaderDelegateT.fromString in interface RuntimeDelegate.HeaderDelegate<String>header - the string value.T.Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.