org.apache.clerezza.triaxrs
Class RootResources
java.lang.Object
org.apache.clerezza.triaxrs.RootResources
public class RootResources
- extends Object
Manages a set of root-resources delivering a suitable root-resource given a
path.
- Author:
- reto
|
Method Summary |
void |
add(org.apache.clerezza.triaxrs.RootResourceDescriptor descriptor)
adds a RootResourceDescriptor |
static String |
getCurrentRequestUri()
|
org.apache.clerezza.triaxrs.RootResourceDescriptor |
getDescriptor(String uriPath)
Get the best matching root-resource for a path |
void |
remove(org.apache.clerezza.triaxrs.RootResourceDescriptor descriptor)
removes a RootResourceDescriptor |
int |
size()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RootResources
public RootResources()
getCurrentRequestUri
public static String getCurrentRequestUri()
add
public void add(org.apache.clerezza.triaxrs.RootResourceDescriptor descriptor)
- adds a
RootResourceDescriptor
- Parameters:
descriptor -
remove
public void remove(org.apache.clerezza.triaxrs.RootResourceDescriptor descriptor)
- removes a
RootResourceDescriptor
- Parameters:
descriptor -
size
public int size()
- Returns:
- the number of available root resources
getDescriptor
public org.apache.clerezza.triaxrs.RootResourceDescriptor getDescriptor(String uriPath)
- Get the best matching root-resource for a path
- Parameters:
uriPath -
- Returns:
- the matching root-resource or null if no root resources matches
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.