Package com.sun.xml.ws.api.pipe
Class ThrowableContainerPropertySet
- java.lang.Object
-
- com.oracle.webservices.api.message.BasePropertySet
-
- com.sun.xml.ws.api.pipe.ThrowableContainerPropertySet
-
- All Implemented Interfaces:
PropertySet
public class ThrowableContainerPropertySet extends BasePropertySet
When usingDispatch<Packet> and the invocation completes with a Throwable, it is useful to be able to inspect the Packet in addition to the Throwable as the Packet contains meta-data about the request and/or response. However, the default behavior is that the caller only receives the Throwable. ThisPropertySetis part of the implementation that allows a completing Fiber to return the Throwable to the caller as part of the Packet.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.oracle.webservices.api.message.BasePropertySet
BasePropertySet.Accessor, BasePropertySet.PropertyMap, BasePropertySet.PropertyMapEntry
-
Nested classes/interfaces inherited from interface com.oracle.webservices.api.message.PropertySet
PropertySet.Property
-
-
Field Summary
Fields Modifier and Type Field Description static StringFAULT_MESSAGEstatic StringFIBER_COMPLETION_THROWABLEstatic StringIS_FAULT_CREATEDstatic StringRESPONSE_PACKET
-
Constructor Summary
Constructors Constructor Description ThrowableContainerPropertySet(Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagegetFaultMessage()protected BasePropertySet.PropertyMapgetPropertyMap()Map representing the Fields and Methods annotated withPropertySet.Property.PacketgetResponsePacket()ThrowablegetThrowable()booleanisFaultCreated()voidsetFaultCreated(boolean isFaultCreated)voidsetFaultMessage(Message faultMessage)voidsetResponsePacket(Packet responsePacket)voidsetThrowable(Throwable throwable)-
Methods inherited from class com.oracle.webservices.api.message.BasePropertySet
asMap, containsKey, createEntrySet, createMapView, createView, get, mapAllowsAdditionalProperties, parse, parse, put, remove, supports
-
-
-
-
Field Detail
-
FIBER_COMPLETION_THROWABLE
public static final String FIBER_COMPLETION_THROWABLE
- See Also:
- Constant Field Values
-
FAULT_MESSAGE
public static final String FAULT_MESSAGE
- See Also:
- Constant Field Values
-
RESPONSE_PACKET
public static final String RESPONSE_PACKET
- See Also:
- Constant Field Values
-
IS_FAULT_CREATED
public static final String IS_FAULT_CREATED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ThrowableContainerPropertySet
public ThrowableContainerPropertySet(Throwable throwable)
-
-
Method Detail
-
getThrowable
public Throwable getThrowable()
-
setThrowable
public void setThrowable(Throwable throwable)
-
getFaultMessage
public Message getFaultMessage()
-
setFaultMessage
public void setFaultMessage(Message faultMessage)
-
getResponsePacket
public Packet getResponsePacket()
-
setResponsePacket
public void setResponsePacket(Packet responsePacket)
-
isFaultCreated
public boolean isFaultCreated()
-
setFaultCreated
public void setFaultCreated(boolean isFaultCreated)
-
getPropertyMap
protected BasePropertySet.PropertyMap getPropertyMap()
Description copied from class:BasePropertySetMap representing the Fields and Methods annotated withPropertySet.Property. Model ofPropertySetclass.At the end of the derivation chain this method just needs to be implemented as:
private static final PropertyMap model; static { model = parse(MyDerivedClass.class); } protected PropertyMap getPropertyMap() { return model; }or if the implementation is in different Java module.private static final PropertyMap model; static { model = parse(MyDerivedClass.class, MethodHandles.lookup()); } protected PropertyMap getPropertyMap() { return model; }- Specified by:
getPropertyMapin classBasePropertySet- Returns:
- the map of strongly-typed known properties keyed by property names
-
-