Java Doc for MethodMarshallerUtils.java in  » Web-Services-AXIS2 » jax-ws » org » apache » axis2 » jaxws » marshaller » impl » alt » 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 AXIS2 » jax ws » org.apache.axis2.jaxws.marshaller.impl.alt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils

MethodMarshallerUtils
public class MethodMarshallerUtils (Code)
Static Utilty Classes used by the MethodMarshaller implementations in the alt package.




Method Summary
static  Holder<T>createHolder(Class paramType, T value)
    
static  Object[]createRequestSignatureArgs(ParameterDescription[] pds, List<PDElement> pdeList)
    
public static  ProtocolExceptioncreateSystemException(XMLFault xmlFault, Message message)
    
public static  XMLFaultcreateXMLFaultFromSystemException(Throwable t)
    
static  ThrowabledemarshalFaultResponse(OperationDescription operationDesc, MarshalServiceRuntimeDescription marshalDesc, Message message)
     Unmarshal the service/system exception from a Message.
static  MarshalServiceRuntimeDescriptiongetMarshalDesc(EndpointDescription ed)
    
static  List<PDElement>getPDElements(MarshalServiceRuntimeDescription marshalDesc, ParameterDescription[] params, Object[] sigArguments, boolean isInput, boolean isDocLitWrapped, boolean isRPC)
    
static  List<PDElement>getPDElements(ParameterDescription[] params, Message message, TreeSet<String> packages, boolean isInput, boolean hasReturnInBody, Class[] unmarshalByJavaType)
     Return the list of PDElements that is unmarshalled from the wire
Parameters:
  params - ParameterDescription for this operation
Parameters:
  message - Message
Parameters:
  packages - set of packages needed to unmarshal objects for this operation
Parameters:
  isInput - indicates if input or output params (input on server, output on client)
Parameters:
  hasReturnInBody - if isInput=false, then this parameter indicates whether a return value is expected in the body.
Parameters:
  unmarshalByJavaType - in most scenarios this is null.
static  ElementgetReturnElement(TreeSet<String> packages, Message message, Class unmarshalByJavaTypeClass, boolean isList, boolean isHeader, String headerNS, String headerLocalPart, boolean hasOutputBodyParams)
    
static  booleanisAsyncHandler(Object value)
    
static  booleanisHolder(Object value)
    
static  booleanisNotJAXBRootElement(Class cls, MarshalServiceRuntimeDescription marshalDesc)
     This probably should be available from the ParameterDescription
Parameters:
  cls -
Parameters:
  marshalDesc - true if primitive, wrapper, java.lang.String.
static  booleanisSWAAttachment(ParameterDescription pd)
    
static  ClassloadClass(String className)
    
static  voidmarshalFaultResponse(Throwable throwable, MarshalServiceRuntimeDescription marshalDesc, OperationDescription operationDesc, Message message)
     Marshaling a fault is essentially the same for rpc/lit and doc/lit.
static  intnumOutputBodyParams(ParameterDescription[] pds)
    
public static  StringstackToString(Throwable e)
    
static  voidtoMessage(List<PDElement> pdeList, Message message, TreeSet<String> packages)
    
static  voidtoMessage(Element returnElement, Class returnType, boolean isList, MarshalServiceRuntimeDescription marshalDesc, Message message, Class marshalByJavaTypeClass, boolean isHeader)
    
static  voidupdateResponseSignatureArgs(ParameterDescription[] pds, List<PDElement> pdeList, Object[] signatureArgs)
    



Method Detail
createHolder
static Holder<T> createHolder(Class paramType, T value) throws IllegalAccessException, InstantiationException, ClassNotFoundException(Code)
Crate a Holder <
Parameters:
  T - >
Parameters:
  paramType -
Parameters:
  value -
throws:
  IllegalAccessException -
throws:
  InstantiationException -
throws:
  ClassNotFoundException -



createRequestSignatureArgs
static Object[] createRequestSignatureArgs(ParameterDescription[] pds, List<PDElement> pdeList) throws InstantiationException, IOException, IllegalAccessException, ClassNotFoundException(Code)
Creates the request signature arguments (server) from a list of element eabled object (PDEements)
Parameters:
  pds - ParameterDescriptions for this Operation
Parameters:
  pvList - Element enabled object Signature Args
throws:
  InstantiationException -
throws:
  IllegalAccessException -
throws:
  ClassNotFoundException -



createSystemException
public static ProtocolException createSystemException(XMLFault xmlFault, Message message)(Code)
Create a system exception
Parameters:
  message -



createXMLFaultFromSystemException
public static XMLFault createXMLFaultFromSystemException(Throwable t)(Code)
This method is used by WebService Impl and Provider to create an XMLFault (for marshalling) from an exception that is a non-service exception
Parameters:
  t - Throwable that represents a Service Exception XMLFault



demarshalFaultResponse
static Throwable demarshalFaultResponse(OperationDescription operationDesc, MarshalServiceRuntimeDescription marshalDesc, Message message) throws WebServiceException, ClassNotFoundException, IllegalAccessException, InstantiationException, XMLStreamException, InvocationTargetException, NoSuchMethodException(Code)
Unmarshal the service/system exception from a Message. This is used by all of the marshallers
Parameters:
  operationDesc -
Parameters:
  marshalDesc -
Parameters:
  message - Throwable
throws:
  WebServiceException -
throws:
  ClassNotFoundException -
throws:
  IllegalAccessException -
throws:
  InstantiationException -
throws:
  XMLStreamException -
throws:
  InvocationTargetException -
throws:
  NoSuchMethodException -



getMarshalDesc
static MarshalServiceRuntimeDescription getMarshalDesc(EndpointDescription ed)(Code)

Parameters:
  ed -



getPDElements
static List<PDElement> getPDElements(MarshalServiceRuntimeDescription marshalDesc, ParameterDescription[] params, Object[] sigArguments, boolean isInput, boolean isDocLitWrapped, boolean isRPC)(Code)
Returns the list of PDElements that need to be marshalled onto the wire
Parameters:
  marshalDesc -
Parameters:
  params - ParameterDescription for this operation
Parameters:
  sigArguments - arguments
Parameters:
  isInput - indicates if input or output params(input args on client, output args on server)
Parameters:
  isDocLitWrapped -
Parameters:
  isRPC - PDElements



getPDElements
static List<PDElement> getPDElements(ParameterDescription[] params, Message message, TreeSet<String> packages, boolean isInput, boolean hasReturnInBody, Class[] unmarshalByJavaType) throws XMLStreamException(Code)
Return the list of PDElements that is unmarshalled from the wire
Parameters:
  params - ParameterDescription for this operation
Parameters:
  message - Message
Parameters:
  packages - set of packages needed to unmarshal objects for this operation
Parameters:
  isInput - indicates if input or output params (input on server, output on client)
Parameters:
  hasReturnInBody - if isInput=false, then this parameter indicates whether a return value is expected in the body.
Parameters:
  unmarshalByJavaType - in most scenarios this is null. Only use this in the scenarios that require unmarshalling by java type ParamValues



getReturnElement
static Element getReturnElement(TreeSet<String> packages, Message message, Class unmarshalByJavaTypeClass, boolean isList, boolean isHeader, String headerNS, String headerLocalPart, boolean hasOutputBodyParams) throws WebServiceException, XMLStreamException(Code)
Unmarshal the return object from the message
Parameters:
  packages -
Parameters:
  message -
Parameters:
  unmarshalByJavaTypeClass - Used only to indicate unmarshaling by type...only necessaryin some scenarios
Parameters:
  isHeader -
Parameters:
  headerNS - (only needed if isHeader)
Parameters:
  headerLocalPart - (only needed if isHeader)
Parameters:
  hasOutputBodyParams - (true if the method has out or inout params other than the return value) Element
throws:
  WebService -
throws:
  XMLStreamException -



isAsyncHandler
static boolean isAsyncHandler(Object value)(Code)

Parameters:
  value - if async handler



isHolder
static boolean isHolder(Object value)(Code)

Parameters:
  value - true if value is holder



isNotJAXBRootElement
static boolean isNotJAXBRootElement(Class cls, MarshalServiceRuntimeDescription marshalDesc)(Code)
This probably should be available from the ParameterDescription
Parameters:
  cls -
Parameters:
  marshalDesc - true if primitive, wrapper, java.lang.String. Calendar (or GregorianCalendar),BigInteger etc or anything other java type that is mapped by the basic schema types



isSWAAttachment
static boolean isSWAAttachment(ParameterDescription pd)(Code)



loadClass
static Class loadClass(String className) throws ClassNotFoundException(Code)
Load the class
Parameters:
  className - loaded class
throws:
  ClassNotFoundException -



marshalFaultResponse
static void marshalFaultResponse(Throwable throwable, MarshalServiceRuntimeDescription marshalDesc, OperationDescription operationDesc, Message message)(Code)
Marshaling a fault is essentially the same for rpc/lit and doc/lit. This method is used by all of the MethodMarshallers
Parameters:
  throwable - Throwable to marshal
Parameters:
  operationDesc - OperationDescription
Parameters:
  packages - Packages needed to marshal the object
Parameters:
  message - Message



numOutputBodyParams
static int numOutputBodyParams(ParameterDescription[] pds)(Code)

Parameters:
  pds - Number of inout or out parameters



stackToString
public static String stackToString(Throwable e)(Code)
Get a string containing the stack of the specified exception
Parameters:
  e -



toMessage
static void toMessage(List<PDElement> pdeList, Message message, TreeSet<String> packages) throws WebServiceException(Code)
Marshal the element enabled objects (pvList) to the Message
Parameters:
  pdeList - element enabled objects
Parameters:
  message - Message
Parameters:
  packages - Packages needed to do a JAXB Marshal
throws:
  MessageException -



toMessage
static void toMessage(Element returnElement, Class returnType, boolean isList, MarshalServiceRuntimeDescription marshalDesc, Message message, Class marshalByJavaTypeClass, boolean isHeader) throws WebServiceException(Code)
Marshals the return object to the message (used on server to marshal return object)
Parameters:
  returnElement - element
Parameters:
  returnType -
Parameters:
  marshalDesc -
Parameters:
  message - marshalByJavaTypeClass..we must do this for RPC...discouraged otherwise
Parameters:
  isHeader -
throws:
  MessageException -



updateResponseSignatureArgs
static void updateResponseSignatureArgs(ParameterDescription[] pds, List<PDElement> pdeList, Object[] signatureArgs) throws InstantiationException, IllegalAccessException, ClassNotFoundException(Code)
Update the signature arguments on the client with the unmarshalled element enabled objects (pvList)
Parameters:
  pds - ParameterDescriptions
Parameters:
  pdeList - Element Enabled objects
Parameters:
  signatureArgs - Signature Arguments (the out/inout holders are updated)
throws:
  InstantiationException -
throws:
  IllegalAccessException -
throws:
  ClassNotFoundException -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w__w___w__.j___av_a__2s_.__c___o__m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.