Package com.sun.xacml.ctx

Examples of com.sun.xacml.ctx.Status


                // see if we previously found another match
                if (selectedPolicy != null) {
                    // we found a match before, so this is an error
                    ArrayList<String> code = new ArrayList<String>();
                    code.add(Status.STATUS_PROCESSING_ERROR);
                    Status status = new Status(code, "too many applicable " + "top-level policies");
                    return new PolicyFinderResult(status);
                }

                // this is the first match we've found, so remember it
                selectedPolicy = policy;
View Full Code Here


        // if there was an error loading the policy, return the error
        if (policy == null) {
            ArrayList<String> code = new ArrayList<String>();
            code.add(Status.STATUS_PROCESSING_ERROR);
            Status status = new Status(code, "couldn't load referenced policy");
            return new PolicyFinderResult(status);
        }

        // return the referenced policy
        return new PolicyFinderResult(policy);
View Full Code Here

        // Build up the processing error Status.
        if (processingErrList == null) {
            String[] errStrings = { Status.STATUS_PROCESSING_ERROR };
            processingErrList = Arrays.asList(errStrings);
        }
        Status errStatus = new Status(processingErrList, message);
        EvaluationResult processingError = new EvaluationResult(errStatus);

        return processingError;
    }
View Full Code Here

        Logger log = Logger.getLogger(this.getClass().getName());
        log.log(Level.SEVERE, t.getMessage(), t);

        List<String> codeList = new ArrayList<String>();
        codeList.add(Status.STATUS_PROCESSING_ERROR);
        return new EvaluationResult(new Status(codeList, t.getLocalizedMessage()));
    }
View Full Code Here

TOP

Related Classes of com.sun.xacml.ctx.Status

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.