|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Mapper
The Mapper
is intended to provide a mapping from
a URI path to a service. This enables objects to be referenced
when a specific path format is used. The encoding of the path
is known by the implementation so that it can parse and extract
a fully qualified package name for a Java class.
The format of the path is specific to the implementation. The
object is responsible for its own format, which could be, for
example, a format similar to one of the following.
The
/ServiceObject.class/path/index.html
/prefix/file.html
/path/bin/index.extension
getName
method is required to take a full
URI path, this cannot include the URI query, domain or port
of a URI. This should use a normalized path such as the path
retrieved from Context.getRequestPath
methods.
This method will return the instance name for the service.
The getClass
method is required to take the
service instance name and produce the fully qualified class
name for the service that is to be loaded.
MapperEngine
Method Summary | |
---|---|
java.lang.String |
getClass(java.lang.String name)
This method is used to acquire the fully qualified class name from the service instance name. |
Configuration |
getConfiguration(java.lang.String name)
This method is used retrieve properties for a service by using the service name. |
java.lang.String |
getName(java.lang.String path)
This method is used to transform a path to a service name. |
java.lang.String |
getPath(java.lang.String path)
This method is used to determine the normalized path of the issued URI path. |
Method Detail |
---|
java.lang.String getPath(java.lang.String path)
path
- this is the path that is to be converted
java.lang.String getName(java.lang.String path)
path
- this is the path that is to be converted
Configuration getConfiguration(java.lang.String name)
name
- this is the name of the service instance
java.lang.String getClass(java.lang.String name)
name
- this is the name of the service instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |