IT. Expert System.

Java Enterprise Edition (EE)

ServletSecurityElement


javax.servlet
Class ServletSecurityElement

java.lang.Object
  javax.servlet.HttpConstraintElement
      javax.servlet.ServletSecurityElement
public class ServletSecurityElement
extends HttpConstraintElement

Java Class represntation of a ServletSecurity annotation value.

Since:
Servlet 3.0

Constructor Summary
ServletSecurityElement()
          Constructs an instance using the default HttpConstraintElement value as the default Constraint element and with no HTTP Method specific constraint elements.
ServletSecurityElement(java.util.Collection<HttpMethodConstraintElement> methodConstraints)
          Constructs an instance using the default HttpConstraintElement value as the default Constraint element and with a collection of HTTP Method specific constraint elements.
ServletSecurityElement(HttpConstraintElement constraint)
          Constructs an instance with a default Constraint element and with no HTTP Method specific constraint elements.
ServletSecurityElement(HttpConstraintElement constraint, java.util.Collection<HttpMethodConstraintElement> methodConstraints)
          Constructs an instance with a default Constraint element and with a collection of HTTP Method specific constraint elements.
ServletSecurityElement(ServletSecurity annotation)
          Constructs an instance from a ServletSecurity annotation value.
 
Method Summary
 java.util.Collection<HttpMethodConstraintElement> getHttpMethodConstraints()
          Gets the (possibly empty) collection of HTTP Method specific constraint elements.
 java.util.Collection<java.lang.String> getMethodNames()
          Gets the set of HTTP methid names named by the HttpMethodConstraints.
 
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()
Constructs an instance using the default HttpConstraintElement value as the default Constraint element and with no HTTP Method specific constraint elements.

ServletSecurityElement

public ServletSecurityElement(HttpConstraintElement constraint)
Constructs an instance with a default Constraint element and with no HTTP Method specific constraint elements.

Parameters:
constraint - the HttpConstraintElement to be applied to all HTTP methods other than those represented in the methodConstraints

ServletSecurityElement

public ServletSecurityElement(java.util.Collection<HttpMethodConstraintElement> methodConstraints)
Constructs an instance using the default HttpConstraintElement value as the default Constraint element and with a collection of HTTP Method specific constraint elements.

Parameters:
methodConstraints - the collection of HTTP method specific constraint elements
Throws:
java.lang.IllegalArgumentException - if duplicate method names are detected

ServletSecurityElement

public ServletSecurityElement(HttpConstraintElement constraint,
                              java.util.Collection<HttpMethodConstraintElement> methodConstraints)
Constructs an instance with a default Constraint element and with a collection of HTTP Method specific constraint elements.

Parameters:
constraint - the HttpConstraintElement to be applied to all HTTP methods other than those represented in the methodConstraints
methodConstraints - the collection of HTTP method specific constraint elements.
Throws:
java.lang.IllegalArgumentException - if duplicate method names are detected

ServletSecurityElement

public ServletSecurityElement(ServletSecurity annotation)
Constructs an instance from a ServletSecurity annotation value.

Parameters:
annotation - the annotation value
Throws:
java.lang.IllegalArgumentException - if duplicate method names are detected
Method Detail

getHttpMethodConstraints

public java.util.Collection<HttpMethodConstraintElement> getHttpMethodConstraints()
Gets the (possibly empty) collection of HTTP Method specific constraint elements.

Returns:
the (possibly empty) collection of HttpMethodConstraintElement objects

getMethodNames

public java.util.Collection<java.lang.String> getMethodNames()
Gets the set of HTTP methid names named by the HttpMethodConstraints.

Returns:
the set of String method names


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 178 / 158680637. Delta: 0.20379 с