Package javax.servlet
Class HttpConstraintElement
- java.lang.Object
-
- javax.servlet.HttpConstraintElement
-
- Direct Known Subclasses:
HttpMethodConstraintElement
,ServletSecurityElement
public class HttpConstraintElement extends Object
The HttpConstraintElement API.- Author:
- Manfred Riem ([email protected])
-
-
Constructor Summary
Constructors Constructor Description HttpConstraintElement()
Constructor.HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic)
Constructor.HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic, ServletSecurity.TransportGuarantee transportGuarantee, String... rolesAllowed)
Constructor.HttpConstraintElement(ServletSecurity.TransportGuarantee transportGuarantee, String... rolesAllowed)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServletSecurity.EmptyRoleSemantic
getEmptyRoleSemantic()
Get the EmptyRoleSemantic.String[]
getRolesAllowed()
Get the roles allowed.ServletSecurity.TransportGuarantee
getTransportGuarantee()
Get the transport guarantee.
-
-
-
Constructor Detail
-
HttpConstraintElement
public HttpConstraintElement()
Constructor.
-
HttpConstraintElement
public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic)
Constructor.- Parameters:
emptyRoleSemantic
- the EmptyRoleSemantic.
-
HttpConstraintElement
public HttpConstraintElement(ServletSecurity.TransportGuarantee transportGuarantee, String... rolesAllowed)
Constructor.- Parameters:
transportGuarantee
- the TransportGuarantee.rolesAllowed
- the roles allowed.
-
HttpConstraintElement
public HttpConstraintElement(ServletSecurity.EmptyRoleSemantic emptyRoleSemantic, ServletSecurity.TransportGuarantee transportGuarantee, String... rolesAllowed)
Constructor.- Parameters:
emptyRoleSemantic
- the EmptyRoleSemantic.transportGuarantee
- the TransportGuarantee.rolesAllowed
- the roles allowed.
-
-
Method Detail
-
getEmptyRoleSemantic
public ServletSecurity.EmptyRoleSemantic getEmptyRoleSemantic()
Get the EmptyRoleSemantic.- Returns:
- the EmptyRoleSemantic.
-
getTransportGuarantee
public ServletSecurity.TransportGuarantee getTransportGuarantee()
Get the transport guarantee.- Returns:
- the transport guarantee.
-
getRolesAllowed
public String[] getRolesAllowed()
Get the roles allowed.- Returns:
- the roles allowed.
-
-