|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.remoting.impl.MappingsImpl
public class MappingsImpl
Default implementation of Mappings
.
Constructor Summary | |
---|---|
MappingsImpl()
|
Method Summary | |
---|---|
void |
addMapping(Mapping mapping)
Add the specified |
String |
getExtension()
Return the extension that will replace the |
Mapping |
getMapping(String pattern)
Return the |
List |
getMappings()
Return a |
int |
getPatternIndex()
Return the zero-relative index, into the array returned by
|
String[] |
getPatterns()
Return a list of URL patterns that this application has mapped to
|
void |
removeMapping(Mapping mapping)
Remove the specified |
void |
setExtension(String extension)
Set the extension that will replace the |
void |
setPatternIndex(int patternIndex)
Set the zero-relative index, into the array returned by
|
void |
setPatterns(String[] patterns)
Set a list of URL patterns that this application has mapped to
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MappingsImpl()
Method Detail |
---|
public void addMapping(Mapping mapping)
Add the specified Mapping
to the set of mappings for which
remoting services are supplied.
addMapping
in interface Mappings
mapping
- The new Mapping
to be addedpublic String getExtension()
Return the extension that will replace the FacesServlet
extension pattern, if FacesServlet
is extension mapped.
getExtension
in interface Mappings
public Mapping getMapping(String pattern)
Return the Mapping
, if any, for the specified matching
pattern
. If there is no such Mapping
, return
null
instead.
getMapping
in interface Mappings
pattern
- Matching pattern for which to return a Mapping
public List getMappings()
Return a List
of all the currently defined Mapping
s
for this application. If there are no currently defined Mapping
s,
an empty List
is returned.
getMappings
in interface Mappings
public int getPatternIndex()
Return the zero-relative index, into the array returned by
getPatterns()
, of the URL pattern to be used by default
when creating URLs for resources.
getPatternIndex
in interface Mappings
public void setPatternIndex(int patternIndex)
Set the zero-relative index, into the array returned by
getPatterns()
, of the URL pattern to be used by default
when creating URLs for resources. If not called, the default value
will be zero.
setPatternIndex
in interface Mappings
patternIndex
- The new pattern indexpublic String[] getPatterns()
Return a list of URL patterns that this application has mapped to
FacesServlet
. This information is useful to renderers that
wish to dynamically calculate URLs that will be guaranteed to trigger
the JSF request processing lifecycle.
getPatterns
in interface Mappings
public void removeMapping(Mapping mapping)
Remove the specified Mapping
from the set of mappings for which
remoting services are supplied, if it is currently included.
removeMapping
in interface Mappings
mapping
- The Mapping
to be removedpublic void setExtension(String extension)
Set the extension that will replace the FacesServlet
extension pattern, if FacesServlet
is extension mapped.
setExtension
in interface Mappings
extension
- The new extensionpublic void setPatterns(String[] patterns)
Set a list of URL patterns that this application has mapped to
FacesServlet
. If no patterns are known, this SHOULD
be set to a zero-length array, rather than null
.
setPatterns
in interface Mappings
patterns
- The new list of patterns
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |