站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

PrefixDelegatingCommandMapper - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.command.mapper
Interface PrefixDelegatingCommandMapper

All Superinterfaces:
CommandMapper
All Known Implementing Classes:
PrefixDelegatingCommandMapperService

public interface PrefixDelegatingCommandMapper
extends CommandMapper

A command mapper that delegates to other mappers based on the prefix of the request path.


Method Summary
 void register(java.lang.String prefix, CommandMapper mapper)
          Register a command mapper with the specified prefix
 void unregister(java.lang.String prefix)
          Unregister a mapper for a given prefix.
 
Methods inherited from interface org.jboss.portal.core.command.CommandMapper
doMapping, doMapping
 

Method Detail

register

public void register(java.lang.String prefix,
                     CommandMapper mapper)
              throws java.lang.IllegalArgumentException
Register a command mapper with the specified prefix

Parameters:
prefix - the prefix to associate with
mapper - the mapper
Throws:
java.lang.IllegalArgumentException - if any argument is null or another mapper is already registered with the prefix

unregister

public void unregister(java.lang.String prefix)
                throws java.lang.IllegalArgumentException
Unregister a mapper for a given prefix.

Parameters:
prefix - the prefix
Throws:
java.lang.IllegalArgumentException - if the argument is null or no mapper is registered under that prefix