Java Doc for AbstractMapBasedEndpointMapping.java in  » Web-Services » spring-ws-1.0.0 » org » springframework » ws » server » endpoint » mapping » 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 » Web Services » spring ws 1.0.0 » org.springframework.ws.server.endpoint.mapping 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
   org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping

All known Subclasses:   org.springframework.ws.server.endpoint.mapping.XPathPayloadEndpointMapping,  org.springframework.ws.soap.server.endpoint.mapping.SoapActionEndpointMapping,  org.springframework.ws.server.endpoint.mapping.AbstractQNameEndpointMapping,
AbstractMapBasedEndpointMapping
abstract public class AbstractMapBasedEndpointMapping extends AbstractEndpointMapping (Code)
Abstract base class for endpoint mapping that are based on a Map. Provides mappings of application context beans as well as a settable map.

Subclasses determine the exact nature of the key in the enpoint map; this can be a qualified name, a SOAP Header, the result of a XPath validation. The values are always endpoint objects, or bean names of endpoint objects.
author:
   Arjen Poutsma
since:
   1.0.0





Method Summary
final protected  ObjectgetEndpointInternal(MessageContext messageContext)
     Lookup an endpoint for the given message.
abstract protected  StringgetLookupKeyForMessage(MessageContext messageContext)
     Returns the the endpoint keys for the given message context.
final protected  voidinitApplicationContext()
     Registers annd checks the set endpoints.
protected  ObjectlookupEndpoint(String key)
     Looks up an endpoint instance for the given keys.
protected  voidregisterEndpoint(String key, Object endpoint)
     Register the given endpoint instance under the registration key.
final public  voidsetEndpointMap(Map endpointMap)
     Sets a Map with keys and endpoint beans as values.
public  voidsetLazyInitEndpoints(boolean lazyInitEndpoints)
     Set whether to lazily initialize endpoints.
public  voidsetMappings(Properties mappings)
     Maps keys to endpoint bean names.
final public  voidsetRegisterBeanNames(boolean registerBeanNames)
     Set whether to register bean names found in the application context.
abstract protected  booleanvalidateLookupKey(String key)
     Validates the given endpoint key.



Method Detail
getEndpointInternal
final protected Object getEndpointInternal(MessageContext messageContext) throws Exception(Code)
Lookup an endpoint for the given message. The extraction of the endpoint key is delegated to the concrete subclass. the looked up endpoint, or null



getLookupKeyForMessage
abstract protected String getLookupKeyForMessage(MessageContext messageContext) throws Exception(Code)
Returns the the endpoint keys for the given message context. the registration keys



initApplicationContext
final protected void initApplicationContext() throws BeansException(Code)
Registers annd checks the set endpoints. Checks the beans set through setEndpointMap and setMappings, and registers the bean names found in the application context, if registerBeanNames is set to true.
throws:
  ApplicationContextException - if either of the endpoints defined via setEndpointMap orsetMappings is invalid
See Also:   AbstractMapBasedEndpointMapping.setEndpointMap(java.util.Map)
See Also:   AbstractMapBasedEndpointMapping.setMappings(java.util.Properties)
See Also:   AbstractMapBasedEndpointMapping.setRegisterBeanNames(boolean)



lookupEndpoint
protected Object lookupEndpoint(String key)(Code)
Looks up an endpoint instance for the given keys. All keys are tried in order.
Parameters:
  key - key the beans are mapped to the associated endpoint instance, or null if not found



registerEndpoint
protected void registerEndpoint(String key, Object endpoint) throws BeansException(Code)
Register the given endpoint instance under the registration key.
Parameters:
  key - the string representation of the registration key
Parameters:
  endpoint - the endpoint instance
throws:
  org.springframework.beans.BeansException - if the endpoint could not be registered



setEndpointMap
final public void setEndpointMap(Map endpointMap)(Code)
Sets a Map with keys and endpoint beans as values. The nature of the keys in the given map depends on the exact subclass used. They can be qualified names, for instance, or mime headers.
throws:
  IllegalArgumentException - if the endpoint is invalid



setLazyInitEndpoints
public void setLazyInitEndpoints(boolean lazyInitEndpoints)(Code)
Set whether to lazily initialize endpoints. Only applicable to singleton endpoints, as prototypes are always lazily initialized. Default is false, as eager initialization allows for more efficiency through referencing the controller objects directly.

If you want to allow your endpoints to be lazily initialized, make them "lazy-init" and set this flag to true. Just making them "lazy-init" will not work, as they are initialized through the references from the endpoint mapping in this case.




setMappings
public void setMappings(Properties mappings)(Code)
Maps keys to endpoint bean names. The nature of the property names depends on the exact subclass used. They can be qualified names, for instance, or mime headers.



setRegisterBeanNames
final public void setRegisterBeanNames(boolean registerBeanNames)(Code)
Set whether to register bean names found in the application context. Setting this to true will register all beans found in the application context under their name. Default is false.



validateLookupKey
abstract protected boolean validateLookupKey(String key)(Code)
Validates the given endpoint key. Should return true is the given string is valid.



Methods inherited from org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
protected EndpointInvocationChain createEndpointInvocationChain(MessageContext messageContext, Object endpoint, EndpointInterceptor[] interceptors)(Code)(Java Doc)
final protected Object getDefaultEndpoint()(Code)(Java Doc)
final public EndpointInvocationChain getEndpoint(MessageContext messageContext) throws Exception(Code)(Java Doc)
abstract protected Object getEndpointInternal(MessageContext messageContext) throws Exception(Code)(Java Doc)
public EndpointInterceptor[] getInterceptors()(Code)(Java Doc)
final public int getOrder()(Code)(Java Doc)
protected Object resolveStringEndpoint(String endpointName)(Code)(Java Doc)
final public void setDefaultEndpoint(Object defaultEndpoint)(Code)(Java Doc)
final public void setInterceptors(EndpointInterceptor[] interceptors)(Code)(Java Doc)
final public void setOrder(int order)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.