javax.servlet
Class HttpConstraintElement

java.lang.Object
  extended by javax.servlet.HttpConstraintElement
Direct Known Subclasses:
HttpMethodConstraintElement, ServletSecurityElement

public class HttpConstraintElement
extends Object

Since:
Servlet 3.0 TODO SERVLET3 - Add comments

Constructor Summary
HttpConstraintElement()
          Default constraint is permit with no transport guarantee.
HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic)
          Convenience constructor for ServletSecurity.EmptyRoleSemantic.DENY.
HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic, ServletSecurity.TransportGuarantee transportGuarantee, String... rolesAllowed)
           
HttpConstraintElement(ServletSecurity.TransportGuarantee transportGuarantee, String... rolesAllowed)
          Convenience constructor to specify transport guarantee and/or roles.
 
Method Summary
 ServletSecurity.EmptyRoleSemantic getEmptyRoleSemantic()
           
 String[] getRolesAllowed()
           
 ServletSecurity.TransportGuarantee getTransportGuarantee()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpConstraintElement

public HttpConstraintElement()
Default constraint is permit with no transport guarantee.


HttpConstraintElement

public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic)
Convenience constructor for ServletSecurity.EmptyRoleSemantic.DENY.


HttpConstraintElement

public HttpConstraintElement(ServletSecurity.TransportGuarantee transportGuarantee,
                             String... rolesAllowed)
Convenience constructor to specify transport guarantee and/or roles.


HttpConstraintElement

public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic,
                             ServletSecurity.TransportGuarantee transportGuarantee,
                             String... rolesAllowed)
Parameters:
emptyRoleSemantic -
transportGuarantee -
rolesAllowed -
Throws:
IllegalArgumentException - if roles are specified when DENY is used
Method Detail

getEmptyRoleSemantic

public ServletSecurity.EmptyRoleSemantic getEmptyRoleSemantic()

getTransportGuarantee

public ServletSecurity.TransportGuarantee getTransportGuarantee()

getRolesAllowed

public String[] getRolesAllowed()

(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