|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.mtompolicy.Utils
public class Utils
This is a MTOM module utility class. It contains some useful methods used into the MTOM module.
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static void |
applyPolicyToSOAPBindings(AxisService axisService,
org.apache.neethi.Policy policy)
Applies the MTOM policy to the binding level of the web service. |
static MTOMAssertion |
getMTOMAssertion(AxisDescription axisDescription)
Extracts the MTOM assertion object if it is exists into the policy based on a given AxisDescription . |
static org.apache.neethi.Policy |
getMTOMPolicy(Parameter param)
Based on the parameter passed a MTOM10Assertion object is created by default. |
static AxisService |
locateAxisService(AxisDescription axisDescription)
Locates the AxisService object searching up in the hierarchy recursively
the AxisDescription object passed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static MTOMAssertion getMTOMAssertion(AxisDescription axisDescription)
AxisDescription
.
axisDescription
- the AxisDescription
object that should be searched.
MTOMAssertion
the MTOMAssertion
found. If it is not found "null" is returned.public static AxisService locateAxisService(AxisDescription axisDescription)
AxisService
object searching up in the hierarchy recursively
the AxisDescription
object passed.
axisDescription
- the AxisDescription
object that should be checked.
AxisService
object found or "null".public static org.apache.neethi.Policy getMTOMPolicy(Parameter param)
MTOM10Assertion
object is created by default.
Then it is added to a Policy
object and returned.
param
- the Parameter
object that contains the value of the "enableMTOM" parameter:
"true" or "optional".
Policy
object for the MTOM assertion.public static void applyPolicyToSOAPBindings(AxisService axisService, org.apache.neethi.Policy policy) throws AxisFault
axisService
- the AxisService
to whom binding level the MTOM policy should be attached.policy
- the Policy
object that contains the MTOM assertion.
AxisFault
- thrown if the parameter is locked on a parent level - thus it could not be added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |