Package com.volantis.mcs.service

Examples of com.volantis.mcs.service.ServiceDefinition


        final String filterPath = getFilterPath(httpRequest);
        final String url = httpRequest.getRequestURL().toString();
        String remappedURL = url;
        String transformURL = null;

        ServiceDefinition serviceDef =
                ServiceDefinitionHelper.retrieveService(request);
             
        if(serviceDef != null &&
            serviceDef != ServiceDefinition.DEFAULT_SERVICE_DEFINITION) {           
            //remappedURL = serviceDef.getRemoteTarget();
            transformURL = serviceDef.getTransform();
            // ok we have a service lets use that service remapper
            urlRemapper = new ServiceURLRemapper(serviceDef);
        }
               
        // we do not apply a transform when there is no service
View Full Code Here


     */
    private static void configureServiceDefintion(
            MarinerServletRequestContext marinerRequestContext,
            EnvironmentContext environmentContext) {
        HttpServletRequest request = marinerRequestContext.getHttpRequest();
        ServiceDefinition service =
                ServiceDefinitionHelper.retrieveService(request);

        if (service != null) {
            // we need to store this away in the Expression context
            ExpressionContext expressionContext =
View Full Code Here

    // javadoc inherited
    protected Value execute(ExpressionContext expressionContext, String name,
                            Value defaultValue) {

        Value result = defaultValue;
        ServiceDefinition service = getServiceDefinition(expressionContext);
        if (service != null) {
            try {
                MetaDataValue value = service.getCharacteristic(name);
                result = createValue(expressionContext.getFactory(), value);
            } catch (CharacteristicNotAvailableException e) {
                // log the error but we still return the defaultValue
                logger.warn("get-characteristics-fn-failed",
                            new String[] {getFunctionName(), name},
View Full Code Here

     *
     * @param context the ExpressionContext
     * @return a ServiceDefinition instance
     */
    private ServiceDefinition getServiceDefinition(ExpressionContext context) {
        ServiceDefinition service = (ServiceDefinition) context.getProperty(
                ServiceDefinition.class);

        if (service == null) {
            logger.error("service-def-retrieval-failed");
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.service.ServiceDefinition

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.