public interface ServletSecurityType<T> extends Child<T>
servlet-securityType
xsd typeModifier and Type | Method and Description |
---|---|
HttpMethodConstraintType<ServletSecurityType<T>> |
createHttpMethodConstraint()
Creates a new
http-method-constraint element |
ServletSecurityType<T> |
emptyRoleSemantic(String emptyRoleSemantic)
Sets the
empty-role-semantic element |
List<HttpMethodConstraintType<ServletSecurityType<T>>> |
getAllHttpMethodConstraint()
Returns all
http-method-constraint elements |
List<String> |
getAllRolesAllowed()
Returns all
roles-allowed elements |
String |
getEmptyRoleSemantic()
Returns the
empty-role-semantic element |
HttpMethodConstraintType<ServletSecurityType<T>> |
getOrCreateHttpMethodConstraint()
If not already created, a new
http-method-constraint element will be created and returned. |
TransportGuaranteeType |
getTransportGuarantee()
Returns the
transport-guarantee element |
String |
getTransportGuaranteeAsString()
Returns the
transport-guarantee element |
ServletSecurityType<T> |
removeAllHttpMethodConstraint()
Removes all
http-method-constraint elements |
ServletSecurityType<T> |
removeAllRolesAllowed()
Removes the
roles-allowed element |
ServletSecurityType<T> |
removeEmptyRoleSemantic()
Removes the
empty-role-semantic element |
ServletSecurityType<T> |
removeTransportGuarantee()
Removes the
transport-guarantee attribute |
ServletSecurityType<T> |
rolesAllowed(String... values)
Creates for all String objects representing
roles-allowed elements,
a new roles-allowed element |
ServletSecurityType<T> |
transportGuarantee(String transportGuarantee)
Sets the
transport-guarantee element |
ServletSecurityType<T> |
transportGuarantee(TransportGuaranteeType transportGuarantee)
Sets the
transport-guarantee element |
ServletSecurityType<T> emptyRoleSemantic(String emptyRoleSemantic)
empty-role-semantic
elementemptyRoleSemantic
- the value for the element empty-role-semantic
ServletSecurityType
String getEmptyRoleSemantic()
empty-role-semantic
elementempty-role-semantic
ServletSecurityType<T> removeEmptyRoleSemantic()
empty-role-semantic
elementServletSecurityType
ServletSecurityType<T> transportGuarantee(TransportGuaranteeType transportGuarantee)
transport-guarantee
elementtransportGuarantee
- the value for the element transport-guarantee
ServletSecurityType
ServletSecurityType<T> transportGuarantee(String transportGuarantee)
transport-guarantee
elementtransportGuarantee
- the value for the element transport-guarantee
ServletSecurityType
TransportGuaranteeType getTransportGuarantee()
transport-guarantee
elementtransport-guarantee
String getTransportGuaranteeAsString()
transport-guarantee
elementtransport-guarantee
ServletSecurityType<T> removeTransportGuarantee()
transport-guarantee
attributeServletSecurityType
ServletSecurityType<T> rolesAllowed(String... values)
roles-allowed
elements,
a new roles-allowed
elementvalues
- list of roles-allowed
objectsServletSecurityType
List<String> getAllRolesAllowed()
roles-allowed
elementsroles-allowed
ServletSecurityType<T> removeAllRolesAllowed()
roles-allowed
elementServletSecurityType
HttpMethodConstraintType<ServletSecurityType<T>> getOrCreateHttpMethodConstraint()
http-method-constraint
element will be created and returned.
Otherwise, the first existing http-method-constraint
element will be returned.http-method-constraint
HttpMethodConstraintType<ServletSecurityType<T>> createHttpMethodConstraint()
http-method-constraint
elementHttpMethodConstraintType>
List<HttpMethodConstraintType<ServletSecurityType<T>>> getAllHttpMethodConstraint()
http-method-constraint
elementshttp-method-constraint
ServletSecurityType<T> removeAllHttpMethodConstraint()
http-method-constraint
elementsHttpMethodConstraintType>
Copyright © 2013 JBoss by Red Hat. All rights reserved.