Package org.nimbustools.api.services.ctx

Examples of org.nimbustools.api.services.ctx.ContextBrokerException


    public Context getCtx(String bootstrapPath, String bootstrapText)
            throws ContextBrokerException {
       
        if (bootstrapPath == null || bootstrapPath.trim().length() == 0) {
            throw new ContextBrokerException(
                    "context broker did not provide bootstrapPath");
        }

        if (bootstrapText == null || bootstrapText.trim().length() == 0) {
            throw new ContextBrokerException(
                    "context broker did not provide bootstrapPath");
        }
       
        final _Context ctx = this.repr._newContext();
        ctx.setBootstrapPath(bootstrapPath);
View Full Code Here


       
        if (ctx == null) {
            throw new IllegalArgumentException("ctx may not be null");
        }
        if (this.brokerHome == null) {
            throw new ContextBrokerException("contextualization is " +
                    "required but there is no configured context broker");
        }

        // pre validate contextualization document, saves processing
        // time and can avoid need for back-outs
View Full Code Here

            throw new IllegalArgumentException("req may not be null");
        }

        final EndpointReferenceType ctxEPR = req.getContextEPR();
        if (ctxEPR != null) {
            throw new ContextBrokerException("Context EPR is provided " +
                    "but no contextualization section is present in " +
                    "logistics?");
        }

        if (Boolean.TRUE.equals(req.getLockContext())) {
            throw new ContextBrokerException("Contextualization is not" +
                    " required but a contextualization lock is requested (" +
                    "lastDeploymentForContextualizationResource), this is " +
                    "illegal.");
        }
    }
View Full Code Here

TOP

Related Classes of org.nimbustools.api.services.ctx.ContextBrokerException

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.