| 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 ProtocolException | createSystemException(XMLFault xmlFault, Message message) | public static XMLFault | createXMLFaultFromSystemException(Throwable t) | static Throwable | demarshalFaultResponse(OperationDescription operationDesc, MarshalServiceRuntimeDescription marshalDesc, Message message) Unmarshal the service/system exception from a Message. | static MarshalServiceRuntimeDescription | getMarshalDesc(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 Element | getReturnElement(TreeSet<String> packages, Message message, Class unmarshalByJavaTypeClass, boolean isList, boolean isHeader, String headerNS, String headerLocalPart, boolean hasOutputBodyParams) | static boolean | isAsyncHandler(Object value) | static boolean | isHolder(Object value) | static boolean | isNotJAXBRootElement(Class cls, MarshalServiceRuntimeDescription marshalDesc) This probably should be available from the ParameterDescription
Parameters: cls - Parameters: marshalDesc - true if primitive, wrapper, java.lang.String. | static boolean | isSWAAttachment(ParameterDescription pd) | static Class | loadClass(String className) | static void | marshalFaultResponse(Throwable throwable, MarshalServiceRuntimeDescription marshalDesc, OperationDescription operationDesc, Message message) Marshaling a fault is essentially the same for rpc/lit and doc/lit. | static int | numOutputBodyParams(ParameterDescription[] pds) | public static String | stackToString(Throwable e) | static void | toMessage(List<PDElement> pdeList, Message message, TreeSet<String> packages) | static void | toMessage(Element returnElement, Class returnType, boolean isList, MarshalServiceRuntimeDescription marshalDesc, Message message, Class marshalByJavaTypeClass, boolean isHeader) | static void | updateResponseSignatureArgs(ParameterDescription[] pds, List<PDElement> pdeList, Object[] signatureArgs) |
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 |
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) | | |
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 - |
|
|