|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Mappingsmapping - 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 Mappingspublic 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 Mappingspattern - Matching pattern for which to return a Mappingpublic List getMappings()
Return a List of all the currently defined Mappings
for this application. If there are no currently defined Mappings,
an empty List is returned.
getMappings in interface Mappingspublic 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 Mappingspublic 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 MappingspatternIndex - 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 Mappingspublic 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 Mappingsmapping - 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 Mappingsextension - 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 Mappingspatterns - The new list of patterns
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||