@Singleton public class UriProvider extends Object implements HeaderDelegateProvider<URI>
Constructor and Description |
---|
UriProvider() |
Modifier and Type | Method and Description |
---|---|
URI |
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(URI header)
Convert the supplied value to a String.
|
public boolean supports(Class<?> type)
HeaderDelegateProvider
supports
in interface HeaderDelegateProvider<URI>
type
- the type that is to be supported.public String toString(URI header)
RuntimeDelegate.HeaderDelegate
toString
in interface RuntimeDelegate.HeaderDelegate<URI>
header
- the value of type T
.public URI fromString(String header)
RuntimeDelegate.HeaderDelegate
T
.fromString
in interface RuntimeDelegate.HeaderDelegate<URI>
header
- the string value.T
.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.