|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UriConstructor
Interface to allow REST services to construct URIs on behalf of DataObject serialization for REST.
| Method Summary | |
|---|---|
UriConstructor |
appendPath(Collection<String> components)
Append a path to any existing path. |
UriConstructor |
appendPath(String path)
Append a path to any existing path. |
UriConstructor |
appendPathComponent(String pathComponent)
Append a single component of the path to any existing path. |
UriConstructor |
setFragment(String fragment)
Set the fragment portion of the URI. |
UriConstructor |
setHost(String host)
Set the host part of the URI authority (e.g., www.novell.com). |
UriConstructor |
setPort(int port)
Set the port part of the URI authority (e.g., 8443). |
UriConstructor |
setQueryItem(String key,
Iterable<String> values)
Set a query item and optional values. |
UriConstructor |
setQueryItem(String key,
String... values)
Set a query item and optional values. |
UriConstructor |
setScheme(String scheme)
Set the URI scheme (e.g., "https"). |
UriConstructor |
setUserInfo(String userInfo)
Set any user information for the URI. |
String |
toString()
Return the string representation of the constructed URI. |
| Method Detail |
|---|
UriConstructor setScheme(String scheme)
scheme - The scheme name
UriConstructor setUserInfo(String userInfo)
userInfo - The user information string.
UriConstructor setHost(String host)
host - The host string.
UriConstructor setPort(int port)
port - The port value.
UriConstructor appendPath(String path)
appendPathComponent(String)appendPathComponent).
path - The path string.
UriConstructor appendPath(Collection<String> components)
components - A collection of components. The components will be appended in the order returned by the Iterator returned by
components.iterator().
UriConstructor appendPathComponent(String pathComponent)
pathComponent - The component value.
UriConstructor setQueryItem(String key,
String... values)
key - The name of the query item (e.g., "field" or "query").values - The value(s) for the query item.
UriConstructor setQueryItem(String key,
Iterable<String> values)
key - The name of the query item (e.g., "field" or "query").values - The value(s) for the query item.
UriConstructor setFragment(String fragment)
fragment - The fragment string (not including the '#').
String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||