Java Doc for SOAPCallingConvention.java in  » Web-Services » xins » org » xins » server » 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 » xins » org.xins.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.xins.server.CallingConvention
   org.xins.server.SOAPCallingConvention

All known Subclasses:   org.xins.server.SOAPMapCallingConvention,
SOAPCallingConvention
public class SOAPCallingConvention extends CallingConvention (Code)
The SOAP calling convention. The SOAP message parsed by this calling convention is expected to match the WSDL generated by the _WSDL meta-function.
version:
   $Revision: 1.72 $ $Date: 2007/09/21 09:07:55 $
author:
   Anthony Goubard
author:
   Ernst de Haan


Field Summary
final protected static  StringFUNCTION_NAME
     The key used to store the name of the function in the request attributes.
final protected static  StringREQUEST_NAMESPACE
     The key used to store the name of the namespace in the request attributes.
final protected static  StringRESPONSE_CONTENT_TYPE
     The content type of the HTTP response.
final protected static  StringRESPONSE_ENCODING
     The response encoding format.

Constructor Summary
public  SOAPCallingConvention(API api)
     Creates a new SOAPCallingConvention instance.

Method Summary
protected  FunctionRequestconvertRequestImpl(HttpServletRequest httpRequest)
    
protected  voidconvertResultImpl(FunctionResult xinsResult, HttpServletResponse httpResponse, HttpServletRequest httpRequest)
    
protected  String[]getSupportedMethods()
    
protected  booleanmatches(HttpServletRequest httpRequest)
     Checks if the specified request can be handled by this calling convention.
protected  ElementreadDataSection(Element parametersElem, String functionName)
     Reads the input parameters.
protected  BasicPropertyReaderreadInputParameters(Element parametersElem, String functionName)
     Reads the input parameters.
protected  voidsetDataElementAttribute(ElementBuilder builder, String attributeName, String attributeValue, String elementNameSpacePrefix)
     Writes the attribute a output data element for the returned SOAP element.
protected  ElementsoapElementTransformation(Map dataSection, boolean input, Element element, boolean top)
     Convert the values of element to the required format.
protected  StringsoapInputValueTransformation(Type parameterType, String value)
     Transforms the value of a input SOAP parameter to the XINS equivalent.
protected  StringsoapOutputValueTransformation(Type parameterType, String value)
     Transforms the value of a output XINS parameter to the SOAP equivalent.
protected  voidwriteFaultSection(String functionName, String namespaceURI, FunctionResult xinsResult, XMLOutputter xmlout)
     Writes the fault section to the SOAP XML when an error code is returned from the function call.
protected  voidwriteOutputDataSection(String functionName, FunctionResult xinsResult, XMLOutputter xmlout)
     Writes the output data section to the SOAP XML.
protected  voidwriteOutputParameters(String functionName, FunctionResult xinsResult, XMLOutputter xmlout)
     Writes the output parameters to the SOAP XML.

Field Detail
FUNCTION_NAME
final protected static String FUNCTION_NAME(Code)
The key used to store the name of the function in the request attributes.
since:
   XINS 2.1.



REQUEST_NAMESPACE
final protected static String REQUEST_NAMESPACE(Code)
The key used to store the name of the namespace in the request attributes.
since:
   XINS 2.1.



RESPONSE_CONTENT_TYPE
final protected static String RESPONSE_CONTENT_TYPE(Code)
The content type of the HTTP response.



RESPONSE_ENCODING
final protected static String RESPONSE_ENCODING(Code)
The response encoding format.




Constructor Detail
SOAPCallingConvention
public SOAPCallingConvention(API api) throws IllegalArgumentException(Code)
Creates a new SOAPCallingConvention instance.
Parameters:
  api - the API, needed for the SOAP messages, cannot be null.
throws:
  IllegalArgumentException - if api == null.




Method Detail
convertRequestImpl
protected FunctionRequest convertRequestImpl(HttpServletRequest httpRequest) throws InvalidRequestException, FunctionNotSpecifiedException(Code)



convertResultImpl
protected void convertResultImpl(FunctionResult xinsResult, HttpServletResponse httpResponse, HttpServletRequest httpRequest) throws IOException(Code)



getSupportedMethods
protected String[] getSupportedMethods()(Code)



matches
protected boolean matches(HttpServletRequest httpRequest) throws Exception(Code)
Checks if the specified request can be handled by this calling convention.

This method will not throw any exception.
Parameters:
  httpRequest - the HTTP request to investigate, cannot be null.true if this calling convention is possiblyable to handle this request, or false if itdefinitely not able to handle this request.
throws:
  Exception - if analysis of the request causes an exception;false will be assumed.




readDataSection
protected Element readDataSection(Element parametersElem, String functionName) throws InvalidRequestException(Code)
Reads the input parameters.
Parameters:
  parametersElem - the XML element which contains the parameters and data section,cannot be null
Parameters:
  functionName - the name of the function called, cannot be null.the data section for the function, can be null.
throws:
  InvalidRequestException - if the SOAP request is invalid.



readInputParameters
protected BasicPropertyReader readInputParameters(Element parametersElem, String functionName)(Code)
Reads the input parameters.
Parameters:
  parametersElem - the XML element which contains the parameters, cannot be null
Parameters:
  functionName - the name of the function called, cannot be null.the parameters for the function, never null.



setDataElementAttribute
protected void setDataElementAttribute(ElementBuilder builder, String attributeName, String attributeValue, String elementNameSpacePrefix)(Code)
Writes the attribute a output data element for the returned SOAP element.
Parameters:
  builder - the builder used to create the SOAP Element, cannot be null.
Parameters:
  attributeName - the name of the attribute, cannot be null.
Parameters:
  attributeValue - the value of the attribute, cannot be null.
Parameters:
  elementNameSpacePrefix - the namespace prefix of the parent element, can be null.
since:
   XINS 2.1.



soapElementTransformation
protected Element soapElementTransformation(Map dataSection, boolean input, Element element, boolean top)(Code)
Convert the values of element to the required format.
Parameters:
  dataSection - the specification of the elements, cannot be null.
Parameters:
  input - true if it's the input parameter that should be transform,false if it's the output parameter.
Parameters:
  element - the element node to process, cannot be null.
Parameters:
  top - true if it's the top element, false otherwise.the converted value, never null.



soapInputValueTransformation
protected String soapInputValueTransformation(Type parameterType, String value) throws InvalidSpecificationException(Code)
Transforms the value of a input SOAP parameter to the XINS equivalent.
Parameters:
  parameterType - the type of the parameter, cannot be null.
Parameters:
  value - the value of the SOAP parameter, cannot be null.the XINS value, never null.
throws:
  InvalidSpecificationException - if the specification is incorrect.



soapOutputValueTransformation
protected String soapOutputValueTransformation(Type parameterType, String value) throws InvalidSpecificationException(Code)
Transforms the value of a output XINS parameter to the SOAP equivalent.
Parameters:
  parameterType - the type of the parameter, cannot be null.
Parameters:
  value - the value returned by the XINS function, cannot be null.the SOAP value, never null.
throws:
  InvalidSpecificationException - if the specification is incorrect.



writeFaultSection
protected void writeFaultSection(String functionName, String namespaceURI, FunctionResult xinsResult, XMLOutputter xmlout) throws IOException(Code)
Writes the fault section to the SOAP XML when an error code is returned from the function call.
Parameters:
  functionName - the name of the function called.
Parameters:
  namespaceURI - the namespace URI to use for the parameters.
Parameters:
  xinsResult - the result of the call to the function.
Parameters:
  xmlout - the XML outputter to write the parameters in.
throws:
  IOException - if the data cannot be written to the XML outputter for any reason.



writeOutputDataSection
protected void writeOutputDataSection(String functionName, FunctionResult xinsResult, XMLOutputter xmlout) throws IOException(Code)
Writes the output data section to the SOAP XML.
Parameters:
  functionName - the name of the function called.
Parameters:
  xinsResult - the result of the call to the function.
Parameters:
  xmlout - the XML outputter to write the data section in.
throws:
  IOException - if the data cannot be written to the XML outputter for any reason.



writeOutputParameters
protected void writeOutputParameters(String functionName, FunctionResult xinsResult, XMLOutputter xmlout) throws IOException(Code)
Writes the output parameters to the SOAP XML.
Parameters:
  functionName - the name of the function called.
Parameters:
  xinsResult - the result of the call to the function.
Parameters:
  xmlout - the XML outputter to write the parameters in.
throws:
  IOException - if the data cannot be written to the XML outputter for any reason.



Methods inherited from org.xins.server.CallingConvention
static void cleanUpParameters(BasicPropertyReader parameters) throws IllegalArgumentException(Code)(Java Doc)
final FunctionRequest convertRequest(HttpServletRequest httpRequest) throws IllegalStateException, IllegalArgumentException, InvalidRequestException, FunctionNotSpecifiedException(Code)(Java Doc)
abstract protected FunctionRequest convertRequestImpl(HttpServletRequest httpRequest) throws InvalidRequestException, FunctionNotSpecifiedException(Code)(Java Doc)
final void convertResult(FunctionResult xinsResult, HttpServletResponse httpResponse, HttpServletRequest httpRequest) throws IllegalStateException, IllegalArgumentException, IOException(Code)(Java Doc)
abstract protected void convertResultImpl(FunctionResult xinsResult, HttpServletResponse httpResponse, HttpServletRequest httpRequest) throws IOException(Code)(Java Doc)
BasicPropertyReader gatherParams(HttpServletRequest httpRequest) throws InvalidRequestException(Code)(Java Doc)
final protected API getAPI()(Code)(Java Doc)
final String getConventionName()(Code)(Java Doc)
protected String[] getSupportedMethods()(Code)(Java Doc)
protected String[] getSupportedMethods(HttpServletRequest request)(Code)(Java Doc)
abstract protected boolean matches(HttpServletRequest httpRequest) throws Exception(Code)(Java Doc)
final boolean matchesRequest(HttpServletRequest httpRequest)(Code)(Java Doc)
protected Element parseXMLRequest(HttpServletRequest httpRequest) throws IllegalArgumentException, InvalidRequestException(Code)(Java Doc)
protected Element parseXMLRequest(HttpServletRequest httpRequest, boolean checkType) throws IllegalArgumentException, InvalidRequestException(Code)(Java Doc)
final void setAPI(API api)(Code)(Java Doc)
final void setConventionName(String conventionName)(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.