org.apache.axis2.util
Class MessageProcessorSelector

java.lang.Object
  extended by org.apache.axis2.util.MessageProcessorSelector

public class MessageProcessorSelector
extends java.lang.Object

MessageProcessorSelector is utility class which encapsulate MessageBuilder and MessageFormatter selection logic.

Since:
1.7.0

Constructor Summary
MessageProcessorSelector()
           
 
Method Summary
static org.apache.axiom.om.impl.builder.StAXBuilder getAttachmentBuilder(MessageContext msgContext, org.apache.axiom.attachments.Attachments attachments, javax.xml.stream.XMLStreamReader streamReader, java.lang.String soapEnvelopeNamespaceURI, boolean isSOAP)
           
static Builder getMessageBuilder(java.lang.String type, MessageContext msgContext)
          Initial work for a builder selector which selects the builder for a given message format based on the the content type of the recieved message.
static MessageFormatter getMessageFormatter(MessageContext msgContext)
          Initial work for a builder selector which selects the builder for a given message format based on the the content type of the recieved message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageProcessorSelector

public MessageProcessorSelector()
Method Detail

getMessageBuilder

public static Builder getMessageBuilder(java.lang.String type,
                                        MessageContext msgContext)
                                 throws AxisFault
Initial work for a builder selector which selects the builder for a given message format based on the the content type of the recieved message. content-type to builder mapping can be specified through the Axis2.xml.

Parameters:
type - content-type
msgContext - the active MessageContext
Returns:
the builder registered against the given content-type
Throws:
AxisFault

getMessageFormatter

public static MessageFormatter getMessageFormatter(MessageContext msgContext)
                                            throws AxisFault
Initial work for a builder selector which selects the builder for a given message format based on the the content type of the recieved message. content-type to builder mapping can be specified through the Axis2.xml.

Parameters:
msgContext -
Returns:
the builder registered against the given content-type
Throws:
AxisFault

getAttachmentBuilder

public static org.apache.axiom.om.impl.builder.StAXBuilder getAttachmentBuilder(MessageContext msgContext,
                                                                                org.apache.axiom.attachments.Attachments attachments,
                                                                                javax.xml.stream.XMLStreamReader streamReader,
                                                                                java.lang.String soapEnvelopeNamespaceURI,
                                                                                boolean isSOAP)
                                                                         throws org.apache.axiom.om.OMException,
                                                                                javax.xml.stream.XMLStreamException,
                                                                                javax.xml.parsers.FactoryConfigurationError
Throws:
org.apache.axiom.om.OMException
javax.xml.stream.XMLStreamException
javax.xml.parsers.FactoryConfigurationError


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.