public class HelpUrlProvider extends Object implements Contextualizable, Configurable, Component
Modifier and Type | Field and Description |
---|---|
protected static String |
__DEFAULT_HELP_ID
Key of the default url
|
protected static String |
__SEARCH_HELP_ID
Key of the search url
|
protected Context |
_context
Cocoon context
|
protected static Map<String,String> |
_helpMapping
The map that links help identifiers and urls
|
private long |
_lastUpdate |
Constructor and Description |
---|
HelpUrlProvider() |
Modifier and Type | Method and Description |
---|---|
private String |
_getHelpUrl(String helpId) |
private String |
_getSearchUrl(String searchQuery) |
private void |
_updateHelpUrls() |
void |
configure(Configuration configuration) |
void |
contextualize(Context context) |
Map<String,Object> |
getDefaultHelpUrl()
Get the default help url
|
Map<String,Object> |
getHelpUrl(String helpId)
Get the default help url
|
Map<String,Object> |
getSearchUrl(String searchQuery)
Get the search url
|
protected static final String __DEFAULT_HELP_ID
protected static final String __SEARCH_HELP_ID
protected static Map<String,String> _helpMapping
private long _lastUpdate
public HelpUrlProvider()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public Map<String,Object> getDefaultHelpUrl()
public Map<String,Object> getHelpUrl(String helpId)
helpId
- The help identiferprivate String _getHelpUrl(String helpId)
public Map<String,Object> getSearchUrl(String searchQuery)
searchQuery
- The query string for this searchprivate String _getSearchUrl(String searchQuery)
private void _updateHelpUrls() throws ConfigurationException
ConfigurationException