View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.transport;
8   
9   import org.mule.api.MuleEvent;
10  import org.mule.api.MuleMessage;
11  import org.mule.api.endpoint.OutboundEndpoint;
12  
13  public final class UnsupportedMessageDispatcher extends AbstractMessageDispatcher
14  {
15  
16      public UnsupportedMessageDispatcher(OutboundEndpoint endpoint)
17      {
18          super(endpoint);
19      }
20  
21      protected void doDispatch(MuleEvent event) throws Exception
22      {
23          throw new UnsupportedOperationException("Dispatch not supported for this transport.");
24      }
25  
26      protected MuleMessage doSend(MuleEvent event) throws Exception
27      {
28          throw new UnsupportedOperationException("Send not supported for this transport.");
29      }
30  
31      protected void doInitialise()
32      {
33          // empty
34      }
35  
36      protected void doDispose()
37      {
38          // empty
39      }
40  
41      protected void doConnect() throws Exception
42      {
43          // empty
44      }
45  
46      protected void doDisconnect() throws Exception
47      {
48          // empty
49      }
50  
51      protected void doStart() 
52      {
53          // empty
54      }
55  
56      protected void doStop() 
57      {
58          // empty
59      }
60  }