org.openxri.urimapper.impl
Class FolderURIMapper
java.lang.Object
org.openxri.config.impl.AbstractComponent
org.openxri.urimapper.impl.RegexURIMapper
org.openxri.urimapper.impl.FolderURIMapper
- All Implemented Interfaces:
- java.io.Serializable, Component, URIMapper
public class FolderURIMapper
- extends RegexURIMapper
Implements the URIMapper interface, using a folder structure for URLs.
Does not use the query string if there is one.
If you use this mapper, your server will respond to URLs like this one:
http://yourdomain.com/ns/@free/*earth*moon
(Assuming @free has an authority resolution service endpoint pointing to your server)
- Author:
- =peacekeeper
- See Also:
- Serialized Form
Method Summary |
void |
completeURI(java.lang.StringBuffer uri,
java.lang.String namespace)
Appends the needed namespace to the provided URI for
resolution to this server |
void |
init()
A server component is constructed by the ComponentRegistry by passing a Properties object
to its constructor and then calling this init() method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
namespacePattern
public static final java.util.regex.Pattern namespacePattern
queryPattern
public static final java.util.regex.Pattern queryPattern
FolderURIMapper
public FolderURIMapper(java.util.Properties properties)
init
public void init()
- Description copied from interface:
Component
- A server component is constructed by the ComponentRegistry by passing a Properties object
to its constructor and then calling this init() method.
completeURI
public void completeURI(java.lang.StringBuffer uri,
java.lang.String namespace)
- Description copied from interface:
URIMapper
- Appends the needed namespace to the provided URI for
resolution to this server
Copyright © 2005-2012. All Rights Reserved.