Source Code Cross Referenced for Dispatcher.java in  » ESB » synapse » org » apache » synapse » endpoints » dispatch » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ESB » synapse » org.apache.synapse.endpoints.dispatch 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         *  Licensed to the Apache Software Foundation (ASF) under one
03:         *  or more contributor license agreements.  See the NOTICE file
04:         *  distributed with this work for additional information
05:         *  regarding copyright ownership.  The ASF licenses this file
06:         *  to you under the Apache License, Version 2.0 (the
07:         *  "License"); you may not use this file except in compliance
08:         *  with the License.  You may obtain a copy of the License at
09:         *
10:         *   http://www.apache.org/licenses/LICENSE-2.0
11:         *
12:         *  Unless required by applicable law or agreed to in writing,
13:         *  software distributed under the License is distributed on an
14:         *   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15:         *  KIND, either express or implied.  See the License for the
16:         *  specific language governing permissions and limitations
17:         *  under the License.
18:         */
19:
20:        package org.apache.synapse.endpoints.dispatch;
21:
22:        import org.apache.synapse.MessageContext;
23:        import org.apache.synapse.endpoints.Endpoint;
24:
25:        /**
26:         * Defines the behavior of session dispatchers. There can be two dispatcher types. Server initiated
27:         * session dispatchers and client initiated session dispatchers. In the former one, server generates
28:         * the session ID and sends it to the client in the first RESPONSE. In the later case, client should
29:         * generate the session ID and send it to the server in the first REQUEST. A dispatcher object will
30:         * be created for each session affinity load balance endpoint.
31:         */
32:        public interface Dispatcher {
33:
34:            /**
35:             * Dispatcher should check the session id pattern in the synapseMessageContext and return the
36:             * matching endpoint for that session id, if available. If the session id in the given
37:             * synapseMessageContext is not found it should return null.
38:             *
39:             * @param synCtx client -> esb message context.
40:             * @return Endpoint Endpoint associated with this session.
41:             */
42:            public Endpoint getEndpoint(MessageContext synCtx,
43:                    DispatcherContext dispatcherContext);
44:
45:            /**
46:             * Updates the session maps. This will be called in the first client -> synapse -> server flow
47:             * for client initiated sessions. For server initiated sessions, this will be called in the first
48:             * server -> synapse -> client flow.
49:             *
50:             * @param synCtx   SynapseMessageContext
51:             * @param endpoint Selected endpoint for this session.
52:             */
53:            public void updateSession(MessageContext synCtx,
54:                    DispatcherContext dispatcherContext, Endpoint endpoint);
55:
56:            /**
57:             * Removes the session belonging to the given message context.
58:             *
59:             * @param synCtx MessageContext containing an session ID.
60:             */
61:            public void unbind(MessageContext synCtx,
62:                    DispatcherContext dispatcherContext);
63:
64:            /**
65:             * Determine whether the session supported by the implementing dispatcher is initiated by the
66:             * server (e.g. soap session) or by the client. This can be used for optimizing session updates.
67:             *
68:             * @return true, if the session is initiated by the server. false, otherwise.
69:             */
70:            public boolean isServerInitiatedSession();
71:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.