| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ServletRegistration
Interface through which a Servlet may be further configured.
| Nested Class Summary | |
|---|---|
static interface | 
ServletRegistration.Dynamic
Interface through which a Servlet registered via one of the
 addServlet methods on ServletContext may be further
 configured. | 
| Method Summary | |
|---|---|
 java.util.Set<java.lang.String> | 
addMapping(java.lang.String... urlPatterns)
Adds a servlet mapping with the given URL patterns for the Servlet represented by this ServletRegistration.  | 
 java.util.Collection<java.lang.String> | 
getMappings()
Gets the currently available mappings of the Servlet represented by this ServletRegistration. | 
 java.lang.String | 
getRunAsRole()
Gets the name of the runAs role of the Servlet represented by this ServletRegistration. | 
| Methods inherited from interface javax.servlet.Registration | 
|---|
getClassName, getInitParameter, getInitParameters, getName, setInitParameter, setInitParameters | 
| Method Detail | 
|---|
java.util.Set<java.lang.String> addMapping(java.lang.String... urlPatterns)
If any of the specified URL patterns are already mapped to a different Servlet, no updates will be performed.
If this method is called multiple times, each successive call adds to the effects of the former.
urlPatterns - the URL patterns of the servlet mapping
IllegalArgumentException - if urlPatterns is null
 or empty
IllegalStateException - if the ServletContext from which this
 ServletRegistration was obtained has already been initializedjava.util.Collection<java.lang.String> getMappings()
ServletRegistration.
 If permitted, any changes to the returned Collection must not 
 affect this ServletRegistration.
Collection of the currently
 available mappings of the Servlet represented by this
 ServletRegistrationjava.lang.String getRunAsRole()
ServletRegistration.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 10-February-2011 12:41