Package org.apache.muse.core.routing

Examples of org.apache.muse.core.routing.MessageHandler


        return entry.getEndpointReference();
    }
   
    protected MessageHandler createAddHandler()
    {
        MessageHandler handler = new AddHandler();
       
        Method method = ReflectUtils.getFirstMethod(getClass(), "add");
        handler.setMethod(method);
       
        return handler;
    }
View Full Code Here


        return new SimpleNotificationMessage();
    }
   
    protected MessageHandler createSubscribeHandler()
    {
        MessageHandler handler = new SubscribeHandler(getWsResource());
       
        Method method = ReflectUtils.getFirstMethod(getClass(), "subscribe");
        handler.setMethod(method);
       
        return handler;
    }
View Full Code Here

            wsaFault.setDetail(detail);
           
            return wsaFault.toXML();
        }
       
        MessageHandler handler = capability.getMessageHandler(action);
        Method method = handler.getMethod();
       
        Object[] parameters = null;
       
        try
        {
            //
            // translate from XML -> POJO. the reflection call will take
            // care of casting the generic Object references to the actual
            // method parameter types
            //
            parameters = handler.fromXML(soapBody);
           
            //
            // invoke operation and translate result to XML
            //
            Object result = method.invoke(capability, parameters);
           
            return handler.toXML(result);
        }
       
        catch (Throwable error)
        {
            //
View Full Code Here

            String methodName = getMethodName(localName);
            Method method = (Method)methodsByName.get(methodName);
           
            if (method != null)
            {
                MessageHandler handler = createMessageHandler(action, inputName, outputName);
                handler.setMethod(method);
           
                handlers.add(handler);
               
                i.remove();
            }
View Full Code Here

{
    private static final Element[] _NOT_FOUND = new Element[0];
   
    protected MessageHandler createGetMetadataHandler()
    {
        MessageHandler handler = new GetMetadataHandler();
       
        try
        {
            Method method = ReflectUtils.getFirstMethod(getClass(), "getMetadata");
            handler.setMethod(method);
        }
       
        catch (Throwable error)
        {
            throw new RuntimeException(error.getMessage(), error);
View Full Code Here

        return topics;
    }
   
    protected MessageHandler createGetCurrentMessageHandler()
    {
        MessageHandler handler = new GetCurrentMessageHandler();
       
        Method method = ReflectUtils.getFirstMethod(getClass(), "getCurrentMessage");
        handler.setMethod(method);
       
        return handler;
    }
View Full Code Here

        return new SimpleNotificationMessage();
    }
   
    protected MessageHandler createSubscribeHandler()
    {
        MessageHandler handler = new SubscribeHandler();
       
        Method method = ReflectUtils.getFirstMethod(getClass(), "subscribe");
        handler.setMethod(method);
       
        return handler;
    }
View Full Code Here

        return relationship;
    }

    protected MessageHandler createQueryHandler()
    {
        MessageHandler handler = new QueryRelationshipsHandler();
       
        Method method = ReflectUtils.getFirstMethod(getClass(), "queryRelationshipsByType");
        handler.setMethod(method);
       
        return handler;
    }
View Full Code Here

    //
    private Timer _terminationTimer = new Timer();
   
    protected MessageHandler createSetTerminationTimeHandler()
    {
        MessageHandler handler = new SetTerminationTimeHandler();
       
        Method method = ReflectUtils.getFirstMethod(getClass(), "setTerminationTime");
        handler.setMethod(method);
       
        return handler;
    }
View Full Code Here

public class SimpleSetCapability
    extends AbstractWsResourceCapability implements SetCapability
{
    protected MessageHandler createSetHandler()
    {
        MessageHandler handler = new SetHandler();
       
        Method method = ReflectUtils.getFirstMethod(getClass(), "setResourceProperties");
        handler.setMethod(method);
       
        return handler;
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.core.routing.MessageHandler

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.