Package org.apache.tomcat.deploy

Examples of org.apache.tomcat.deploy.SecurityConstraint


     * If there are none, a zero-length array is returned.
     */
    public SecurityConstraint[] findConstraints() {

  synchronized (constraints) {
      SecurityConstraint results[] =
    new SecurityConstraint[constraints.size()];
      Enumeration elements = constraints.elements();
      for (int i = 0; i < results.length; i++)
    results[i] = (SecurityConstraint) elements.nextElement();
      return (results);
View Full Code Here


     */
    public void invoke(Request request, Response response)
  throws IOException, ServletException {

  // Is this request URI subject to a security constraint?
  SecurityConstraint constraint = findConstraint(request);
  if (constraint == null) {
      invokeNext(request, response);
      return;
  }

View Full Code Here

     * @param request Request we are processing
     */
    private SecurityConstraint findConstraint(Request request) {

  // Are there any defined security constraints?
  SecurityConstraint constraints[] = context.findConstraints();
  if ((constraints == null) || (constraints.length == 0))
      return (null);

  // Check each defined security constraint
  String uri = request.getRequest().getRequestURI();
View Full Code Here

TOP

Related Classes of org.apache.tomcat.deploy.SecurityConstraint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.