Package org.apache.axis2.util
Class MessageProcessorSelector
- java.lang.Object
-
- org.apache.axis2.util.MessageProcessorSelector
-
public class MessageProcessorSelector extends Object
MessageProcessorSelector is utility class which encapsulate MessageBuilder and MessageFormatter selection logic.- Since:
- 1.7.0
-
-
Constructor Summary
Constructors Constructor Description MessageProcessorSelector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Builder
getMessageBuilder(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. content-type to builder mapping can be specified through the Axis2.xml.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.
-
-
-
Method Detail
-
getMessageBuilder
public static Builder getMessageBuilder(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-typemsgContext
- 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
-
-