Public Member Functions |
| UriFactory () |
| The constructor.
|
| UriFactory (final String baseUrl) |
| The constructor.
|
final String | serviceUri (final Map< String, String > vars) |
| Returns the uri for a service, expanding the variables as given in the map.
|
final String | taskFlowUri (final Map< String, String > vars, final String facet) |
| Returns the uri for a task flow, expanding the variables as given in the map, followed by the given facet.
|
final String | taskFlowTypeUri (final Map< String, String > vars, final String facet) |
| Returns the uri for a task flow type, expanding the variables as given in the map, followed by the given facet.
|
final String | quoteUri (final Map< String, String > urimap) |
| Returns the uri for a quote, expanding the variables as given in the map.
|
final String | taskUri (final Map< String, String > urimap, final String facet) |
| Returns the uri for a task, expanding the variables as given in the map, followed by the given facet.
|
final String | taskServiceUri (final Map< String, String > urimap) |
| Returns the uri for a task service, expanding the variables as given in the map.
|
final String | taskServiceUri (final Map< String, String > urimap, final String facet) |
| Returns the uri for a task service, expanding the variables as given in the map, followed by the given facet.
|
final String | subspaceUri (final Map< String, String > vars, final String facet) |
| Returns the uri for a subspace, expanding the variables as given in the map, followed by the given facet.
|
final String | sliceKindUri (final Map< String, String > vars, final String facet) |
final String | sliceUri (final Map< String, String > vars, final String facet) |
final String | getBaseUrl () |
| Returns the base url.
|
final void | setBaseUrl (final String baseUrl) |
| Sets the base url.
|
Static Public Attributes |
static final String | SERVICE = "service" |
| The key for a service.
|
static final String | TASKFLOW_TYPE = "type" |
| The key for a taskflow type.
|
static final String | TASKFLOW_ID = "id" |
| The key for a taskflow id.
|
static final String | QUOTE_ID = "idx" |
| The key for a quote id.
|
static final String | TASK_ID = "taskId" |
| The key for a task ide.
|
static final String | SUBSPACE = "subspace" |
| The key for a subspace.
|
static final String | SLICEKIND = "sliceKind" |
| The key for a slice kind.
|
static final String | SLICE = "sliceId" |
| The key for a slice.
|
Private Member Functions |
void | init () |
| Initialization of the templates.
|
String | addFacet (final URI uri, final String facet) |
| Add "/" and the name of the given facet to an uri, if this facet is not null.
|
Private Attributes |
String | baseUrl |
| The base url, something like http://my.host.org/gndms/grid_id.
|
UriTemplate | serviceTemplate |
| The template for a service.
|
UriTemplate | taskFlowTemplate |
| The template for a task flow.
|
UriTemplate | taskFlowTypeTemplate |
| The template for a task flow type.
|
UriTemplate | quoteTemplate |
| The template for a quote.
|
UriTemplate | taskTemplate |
| The template for a task.
|
UriTemplate | taskServiceTemplate |
| The template for a task service.
|
UriTemplate | subspaceTemplate |
| The template for a subspace.
|
UriTemplate | sliceKindTemplate |
UriTemplate | sliceTemplate |
A factory for GNDMS-resource URIs.
- Author:
- try ma ik jo rr a zib
- Date:
- 03.03.11 18:23 Methods of this class require a map for the path variables and are generating uri templates for different elements.