javax.servlet
Class ServletSecurityElement

java.lang.Object
  extended by javax.servlet.HttpConstraintElement
      extended by javax.servlet.ServletSecurityElement

public class ServletSecurityElement
extends HttpConstraintElement

Since:
Servlet 3.0 TODO SERVLET3 - Add comments

Constructor Summary
ServletSecurityElement()
          Use default HttpConstraint.
ServletSecurityElement(Collection<HttpMethodConstraintElement> httpMethodConstraints)
          Use specific constraints for specified methods and default HttpConstraintElement for all other methods.
ServletSecurityElement(HttpConstraintElement httpConstraintElement)
          Use specified HttpConstraintElement.
ServletSecurityElement(HttpConstraintElement httpConstraintElement, Collection<HttpMethodConstraintElement> httpMethodConstraints)
          Use specified HttpConstraintElement as default and specific constraints for specified methods.
ServletSecurityElement(ServletSecurity annotation)
          Create from an annotation.
 
Method Summary
 Collection<HttpMethodConstraintElement> getHttpMethodConstraints()
           
 Collection<String> getMethodNames()
           
 
Methods inherited from class javax.servlet.HttpConstraintElement
getEmptyRoleSemantic, getRolesAllowed, getTransportGuarantee
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletSecurityElement

public ServletSecurityElement()
Use default HttpConstraint.


ServletSecurityElement

public ServletSecurityElement(Collection<HttpMethodConstraintElement> httpMethodConstraints)
Use specific constraints for specified methods and default HttpConstraintElement for all other methods.

Parameters:
httpMethodConstraints -
Throws:
IllegalArgumentException - if a method name is specified more than once

ServletSecurityElement

public ServletSecurityElement(HttpConstraintElement httpConstraintElement)
Use specified HttpConstraintElement.

Parameters:
httpConstraintElement -

ServletSecurityElement

public ServletSecurityElement(HttpConstraintElement httpConstraintElement,
                              Collection<HttpMethodConstraintElement> httpMethodConstraints)
Use specified HttpConstraintElement as default and specific constraints for specified methods.

Parameters:
httpConstraintElement -
httpMethodConstraints -
Throws:
IllegalArgumentException - if a method name is specified more than

ServletSecurityElement

public ServletSecurityElement(ServletSecurity annotation)
Create from an annotation.

Parameters:
annotation -
Throws:
IllegalArgumentException - if a method name is specified more than
Method Detail

getHttpMethodConstraints

public Collection<HttpMethodConstraintElement> getHttpMethodConstraints()

getMethodNames

public Collection<String> getMethodNames()

(Built by coreservlets)

As of July 2010, there were no online versions of the servlet 3.0, JSP 2.2, and EL 2.2 Javadocs, except as part of the huge Java EE 6 API. So, I built them myself from the Tomcat 7 source code.

Java EE TutorialsJava EE Training