public class UriResolverManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
static int |
RESET_DELAY
Time to reload Runtime Resource Configuration
|
static int |
RESET_TIME
Time to reload Runtime Resource Configuration
|
| Constructor and Description |
|---|
UriResolverManager(String applicationType)
Instance a UriResolverManager
Precondition: set the scope provider
ScopeProvider.instance.get()
The scope is used to look up the generic resource UriResolverMapReader.URI_RESOLVER_MAP available in the infrastructure to map ApplicationType with its Resolver |
| Modifier and Type | Method and Description |
|---|---|
int |
countReaders() |
Set<String> |
getApplicationTypes() |
Map<String,String> |
getCapabilities() |
String |
getLink(Map<String,String> parameters,
boolean shortLink) |
void |
lockReader() |
void |
releaseReader() |
void |
reloadRuntimeResourceParameter(long delay,
long period) |
public static int RESET_DELAY
public static int RESET_TIME
public static final org.slf4j.Logger logger
public UriResolverManager(String applicationType) throws UriResolverMapException, IllegalArgumentException
ScopeProvider.instance.get()
The scope is used to look up the generic resource UriResolverMapReader.URI_RESOLVER_MAP available in the infrastructure to map ApplicationType with its ResolverapplicationType - a key Application Type getApplicationTypes()ExceptionUriResolverMapExceptionIllegalArgumentExceptionpublic void lockReader()
public void releaseReader()
public int countReaders()
public String getLink(Map<String,String> parameters, boolean shortLink) throws IllegalArgumentException, UriResolverMapException
parameters - the map of the parameters sent with HTTP request (link) generatedshortLink - if true the link is shorted otherwise noneIllegalArgumentExceptionUriResolverMapExceptionpublic Set<String> getApplicationTypes()
public Map<String,String> getCapabilities()
public void reloadRuntimeResourceParameter(long delay,
long period)
Copyright © 2015. All Rights Reserved.