com.sun.xml.internal.ws.policy.jaxws.SafePolicyReader.PolicyRecord Java Examples

The following examples show how to use com.sun.xml.internal.ws.policy.jaxws.SafePolicyReader.PolicyRecord. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PolicyWSDLParserExtension.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
private PolicyRecordHandler readSinglePolicy(final PolicyRecord policyRec, final boolean inner) {
    PolicyRecordHandler handler = null;
    String policyId = policyRec.policyModel.getPolicyId();
    if (policyId == null) {
        policyId = policyRec.policyModel.getPolicyName();
    }
    if (policyId != null) {           // policy id defined, keep the policy
        handler = new PolicyRecordHandler(HandlerType.PolicyUri, policyRec.getUri());
        getPolicyRecordsPassedBy().put(policyRec.getUri(), policyRec);
        policyRecToExpandQueue(policyRec);
    } else if (inner) { // no id given to the policy --> keep as an annonymous policy model
        final String anonymousId = AnonymnousPolicyIdPrefix.append(anonymousPoliciesCount++).toString();
        handler = new PolicyRecordHandler(HandlerType.AnonymousPolicyId,anonymousId);
        getAnonymousPolicyModels().put(anonymousId, policyRec.policyModel);
        if (null != policyRec.unresolvedURIs) {
            getUnresolvedUris(false).addAll(policyRec.unresolvedURIs);
        }
    }
    return handler;
}
 
Example #2
Source File: PolicyWSDLParserExtension.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
private PolicyRecordHandler readSinglePolicy(final PolicyRecord policyRec, final boolean inner) {
    PolicyRecordHandler handler = null;
    String policyId = policyRec.policyModel.getPolicyId();
    if (policyId == null) {
        policyId = policyRec.policyModel.getPolicyName();
    }
    if (policyId != null) {           // policy id defined, keep the policy
        handler = new PolicyRecordHandler(HandlerType.PolicyUri, policyRec.getUri());
        getPolicyRecordsPassedBy().put(policyRec.getUri(), policyRec);
        policyRecToExpandQueue(policyRec);
    } else if (inner) { // no id given to the policy --> keep as an annonymous policy model
        final String anonymousId = AnonymnousPolicyIdPrefix.append(anonymousPoliciesCount++).toString();
        handler = new PolicyRecordHandler(HandlerType.AnonymousPolicyId,anonymousId);
        getAnonymousPolicyModels().put(anonymousId, policyRec.policyModel);
        if (null != policyRec.unresolvedURIs) {
            getUnresolvedUris(false).addAll(policyRec.unresolvedURIs);
        }
    }
    return handler;
}
 
Example #3
Source File: PolicyWSDLParserExtension.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
private PolicyRecordHandler readSinglePolicy(final PolicyRecord policyRec, final boolean inner) {
    PolicyRecordHandler handler = null;
    String policyId = policyRec.policyModel.getPolicyId();
    if (policyId == null) {
        policyId = policyRec.policyModel.getPolicyName();
    }
    if (policyId != null) {           // policy id defined, keep the policy
        handler = new PolicyRecordHandler(HandlerType.PolicyUri, policyRec.getUri());
        getPolicyRecordsPassedBy().put(policyRec.getUri(), policyRec);
        policyRecToExpandQueue(policyRec);
    } else if (inner) { // no id given to the policy --> keep as an annonymous policy model
        final String anonymousId = AnonymnousPolicyIdPrefix.append(anonymousPoliciesCount++).toString();
        handler = new PolicyRecordHandler(HandlerType.AnonymousPolicyId,anonymousId);
        getAnonymousPolicyModels().put(anonymousId, policyRec.policyModel);
        if (null != policyRec.unresolvedURIs) {
            getUnresolvedUris(false).addAll(policyRec.unresolvedURIs);
        }
    }
    return handler;
}
 
Example #4
Source File: PolicyWSDLParserExtension.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
private PolicyRecordHandler readSinglePolicy(final PolicyRecord policyRec, final boolean inner) {
    PolicyRecordHandler handler = null;
    String policyId = policyRec.policyModel.getPolicyId();
    if (policyId == null) {
        policyId = policyRec.policyModel.getPolicyName();
    }
    if (policyId != null) {           // policy id defined, keep the policy
        handler = new PolicyRecordHandler(HandlerType.PolicyUri, policyRec.getUri());
        getPolicyRecordsPassedBy().put(policyRec.getUri(), policyRec);
        policyRecToExpandQueue(policyRec);
    } else if (inner) { // no id given to the policy --> keep as an annonymous policy model
        final String anonymousId = AnonymnousPolicyIdPrefix.append(anonymousPoliciesCount++).toString();
        handler = new PolicyRecordHandler(HandlerType.AnonymousPolicyId,anonymousId);
        getAnonymousPolicyModels().put(anonymousId, policyRec.policyModel);
        if (null != policyRec.unresolvedURIs) {
            getUnresolvedUris(false).addAll(policyRec.unresolvedURIs);
        }
    }
    return handler;
}
 
Example #5
Source File: PolicyWSDLParserExtension.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
private PolicyRecordHandler readSinglePolicy(final PolicyRecord policyRec, final boolean inner) {
    PolicyRecordHandler handler = null;
    String policyId = policyRec.policyModel.getPolicyId();
    if (policyId == null) {
        policyId = policyRec.policyModel.getPolicyName();
    }
    if (policyId != null) {           // policy id defined, keep the policy
        handler = new PolicyRecordHandler(HandlerType.PolicyUri, policyRec.getUri());
        getPolicyRecordsPassedBy().put(policyRec.getUri(), policyRec);
        policyRecToExpandQueue(policyRec);
    } else if (inner) { // no id given to the policy --> keep as an annonymous policy model
        final String anonymousId = AnonymnousPolicyIdPrefix.append(anonymousPoliciesCount++).toString();
        handler = new PolicyRecordHandler(HandlerType.AnonymousPolicyId,anonymousId);
        getAnonymousPolicyModels().put(anonymousId, policyRec.policyModel);
        if (null != policyRec.unresolvedURIs) {
            getUnresolvedUris(false).addAll(policyRec.unresolvedURIs);
        }
    }
    return handler;
}
 
Example #6
Source File: PolicyWSDLParserExtension.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
private PolicyRecordHandler readSinglePolicy(final PolicyRecord policyRec, final boolean inner) {
    PolicyRecordHandler handler = null;
    String policyId = policyRec.policyModel.getPolicyId();
    if (policyId == null) {
        policyId = policyRec.policyModel.getPolicyName();
    }
    if (policyId != null) {           // policy id defined, keep the policy
        handler = new PolicyRecordHandler(HandlerType.PolicyUri, policyRec.getUri());
        getPolicyRecordsPassedBy().put(policyRec.getUri(), policyRec);
        policyRecToExpandQueue(policyRec);
    } else if (inner) { // no id given to the policy --> keep as an annonymous policy model
        final String anonymousId = AnonymnousPolicyIdPrefix.append(anonymousPoliciesCount++).toString();
        handler = new PolicyRecordHandler(HandlerType.AnonymousPolicyId,anonymousId);
        getAnonymousPolicyModels().put(anonymousId, policyRec.policyModel);
        if (null != policyRec.unresolvedURIs) {
            getUnresolvedUris(false).addAll(policyRec.unresolvedURIs);
        }
    }
    return handler;
}
 
Example #7
Source File: PolicyWSDLParserExtension.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
private PolicyRecordHandler readSinglePolicy(final PolicyRecord policyRec, final boolean inner) {
    PolicyRecordHandler handler = null;
    String policyId = policyRec.policyModel.getPolicyId();
    if (policyId == null) {
        policyId = policyRec.policyModel.getPolicyName();
    }
    if (policyId != null) {           // policy id defined, keep the policy
        handler = new PolicyRecordHandler(HandlerType.PolicyUri, policyRec.getUri());
        getPolicyRecordsPassedBy().put(policyRec.getUri(), policyRec);
        policyRecToExpandQueue(policyRec);
    } else if (inner) { // no id given to the policy --> keep as an annonymous policy model
        final String anonymousId = AnonymnousPolicyIdPrefix.append(anonymousPoliciesCount++).toString();
        handler = new PolicyRecordHandler(HandlerType.AnonymousPolicyId,anonymousId);
        getAnonymousPolicyModels().put(anonymousId, policyRec.policyModel);
        if (null != policyRec.unresolvedURIs) {
            getUnresolvedUris(false).addAll(policyRec.unresolvedURIs);
        }
    }
    return handler;
}
 
Example #8
Source File: PolicyWSDLParserExtension.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
private PolicyRecordHandler readSinglePolicy(final PolicyRecord policyRec, final boolean inner) {
    PolicyRecordHandler handler = null;
    String policyId = policyRec.policyModel.getPolicyId();
    if (policyId == null) {
        policyId = policyRec.policyModel.getPolicyName();
    }
    if (policyId != null) {           // policy id defined, keep the policy
        handler = new PolicyRecordHandler(HandlerType.PolicyUri, policyRec.getUri());
        getPolicyRecordsPassedBy().put(policyRec.getUri(), policyRec);
        policyRecToExpandQueue(policyRec);
    } else if (inner) { // no id given to the policy --> keep as an annonymous policy model
        final String anonymousId = AnonymnousPolicyIdPrefix.append(anonymousPoliciesCount++).toString();
        handler = new PolicyRecordHandler(HandlerType.AnonymousPolicyId,anonymousId);
        getAnonymousPolicyModels().put(anonymousId, policyRec.policyModel);
        if (null != policyRec.unresolvedURIs) {
            getUnresolvedUris(false).addAll(policyRec.unresolvedURIs);
        }
    }
    return handler;
}
 
Example #9
Source File: PolicyWSDLParserExtension.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private void policyRecToExpandQueue(final PolicyRecord policyRec) {
    if (null==expandQueueHead) {
        expandQueueHead = policyRec;
    } else {
        expandQueueHead = expandQueueHead.insert(policyRec);
    }
}
 
Example #10
Source File: PolicyWSDLParserExtension.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void policyRecToExpandQueue(final PolicyRecord policyRec) {
    if (null==expandQueueHead) {
        expandQueueHead = policyRec;
    } else {
        expandQueueHead = expandQueueHead.insert(policyRec);
    }
}
 
Example #11
Source File: PolicyWSDLParserExtension.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private void policyRecToExpandQueue(final PolicyRecord policyRec) {
    if (null==expandQueueHead) {
        expandQueueHead = policyRec;
    } else {
        expandQueueHead = expandQueueHead.insert(policyRec);
    }
}
 
Example #12
Source File: PolicyWSDLParserExtension.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void policyRecToExpandQueue(final PolicyRecord policyRec) {
    if (null==expandQueueHead) {
        expandQueueHead = policyRec;
    } else {
        expandQueueHead = expandQueueHead.insert(policyRec);
    }
}
 
Example #13
Source File: PolicyWSDLParserExtension.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void policyRecToExpandQueue(final PolicyRecord policyRec) {
    if (null==expandQueueHead) {
        expandQueueHead = policyRec;
    } else {
        expandQueueHead = expandQueueHead.insert(policyRec);
    }
}
 
Example #14
Source File: PolicyWSDLParserExtension.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void policyRecToExpandQueue(final PolicyRecord policyRec) {
    if (null==expandQueueHead) {
        expandQueueHead = policyRec;
    } else {
        expandQueueHead = expandQueueHead.insert(policyRec);
    }
}
 
Example #15
Source File: PolicyWSDLParserExtension.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private void policyRecToExpandQueue(final PolicyRecord policyRec) {
    if (null==expandQueueHead) {
        expandQueueHead = policyRec;
    } else {
        expandQueueHead = expandQueueHead.insert(policyRec);
    }
}
 
Example #16
Source File: PolicyWSDLParserExtension.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private void policyRecToExpandQueue(final PolicyRecord policyRec) {
    if (null==expandQueueHead) {
        expandQueueHead = policyRec;
    } else {
        expandQueueHead = expandQueueHead.insert(policyRec);
    }
}
 
Example #17
Source File: PolicyWSDLParserExtension.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
private Map<String,PolicyRecord> getPolicyRecordsPassedBy() {
    if (null==policyRecordsPassedBy) {
        policyRecordsPassedBy = new HashMap<String,PolicyRecord>();
    }
    return policyRecordsPassedBy;
}
 
Example #18
Source File: PolicyWSDLParserExtension.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
private Map<String,PolicyRecord> getPolicyRecordsPassedBy() {
    if (null==policyRecordsPassedBy) {
        policyRecordsPassedBy = new HashMap<String,PolicyRecord>();
    }
    return policyRecordsPassedBy;
}
 
Example #19
Source File: PolicyWSDLParserExtension.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
private Map<String,PolicyRecord> getPolicyRecordsPassedBy() {
    if (null==policyRecordsPassedBy) {
        policyRecordsPassedBy = new HashMap<String,PolicyRecord>();
    }
    return policyRecordsPassedBy;
}
 
Example #20
Source File: PolicyWSDLParserExtension.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
private Map<String,PolicyRecord> getPolicyRecordsPassedBy() {
    if (null==policyRecordsPassedBy) {
        policyRecordsPassedBy = new HashMap<String,PolicyRecord>();
    }
    return policyRecordsPassedBy;
}
 
Example #21
Source File: PolicyWSDLParserExtension.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
private Map<String,PolicyRecord> getPolicyRecordsPassedBy() {
    if (null==policyRecordsPassedBy) {
        policyRecordsPassedBy = new HashMap<String,PolicyRecord>();
    }
    return policyRecordsPassedBy;
}
 
Example #22
Source File: PolicyWSDLParserExtension.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
private Map<String,PolicyRecord> getPolicyRecordsPassedBy() {
    if (null==policyRecordsPassedBy) {
        policyRecordsPassedBy = new HashMap<String,PolicyRecord>();
    }
    return policyRecordsPassedBy;
}
 
Example #23
Source File: PolicyWSDLParserExtension.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private Map<String,PolicyRecord> getPolicyRecordsPassedBy() {
    if (null==policyRecordsPassedBy) {
        policyRecordsPassedBy = new HashMap<String,PolicyRecord>();
    }
    return policyRecordsPassedBy;
}
 
Example #24
Source File: PolicyWSDLParserExtension.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
private Map<String,PolicyRecord> getPolicyRecordsPassedBy() {
    if (null==policyRecordsPassedBy) {
        policyRecordsPassedBy = new HashMap<String,PolicyRecord>();
    }
    return policyRecordsPassedBy;
}