com.sun.xml.ws.api.pipe
Class ThrowableContainerPropertySet

java.lang.Object
  extended by com.oracle.webservices.api.message.BasePropertySet
      extended by com.sun.xml.ws.api.pipe.ThrowableContainerPropertySet
All Implemented Interfaces:
com.oracle.webservices.api.message.PropertySet

public class ThrowableContainerPropertySet
extends com.oracle.webservices.api.message.BasePropertySet

When using Dispatch<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. This PropertySet is 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
com.oracle.webservices.api.message.BasePropertySet.Accessor, com.oracle.webservices.api.message.BasePropertySet.PropertyMap, com.oracle.webservices.api.message.BasePropertySet.PropertyMapEntry
 
Nested classes/interfaces inherited from interface com.oracle.webservices.api.message.PropertySet
com.oracle.webservices.api.message.PropertySet.Property
 
Field Summary
static java.lang.String FAULT_MESSAGE
           
static java.lang.String FIBER_COMPLETION_THROWABLE
           
static java.lang.String IS_FAULT_CREATED
           
static java.lang.String RESPONSE_PACKET
           
 
Constructor Summary
ThrowableContainerPropertySet(java.lang.Throwable throwable)
           
 
Method Summary
 Message getFaultMessage()
           
protected  com.oracle.webservices.api.message.BasePropertySet.PropertyMap getPropertyMap()
          Map representing the Fields and Methods annotated with PropertySet.Property.
 Packet getResponsePacket()
           
 java.lang.Throwable getThrowable()
           
 boolean isFaultCreated()
           
 void setFaultCreated(boolean isFaultCreated)
           
 void setFaultMessage(Message faultMessage)
           
 void setResponsePacket(Packet responsePacket)
           
 void setThrowable(java.lang.Throwable throwable)
           
 
Methods inherited from class com.oracle.webservices.api.message.BasePropertySet
asMap, containsKey, createEntrySet, createMapView, createView, get, mapAllowsAdditionalProperties, parse, put, remove, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIBER_COMPLETION_THROWABLE

public static final java.lang.String FIBER_COMPLETION_THROWABLE
See Also:
Constant Field Values

FAULT_MESSAGE

public static final java.lang.String FAULT_MESSAGE
See Also:
Constant Field Values

RESPONSE_PACKET

public static final java.lang.String RESPONSE_PACKET
See Also:
Constant Field Values

IS_FAULT_CREATED

public static final java.lang.String IS_FAULT_CREATED
See Also:
Constant Field Values
Constructor Detail

ThrowableContainerPropertySet

public ThrowableContainerPropertySet(java.lang.Throwable throwable)
Method Detail

getThrowable

public java.lang.Throwable getThrowable()

setThrowable

public void setThrowable(java.lang.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 com.oracle.webservices.api.message.BasePropertySet.PropertyMap getPropertyMap()
Description copied from class: com.oracle.webservices.api.message.BasePropertySet
Map representing the Fields and Methods annotated with PropertySet.Property. Model of PropertySet class.

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;
 }
 

Specified by:
getPropertyMap in class com.oracle.webservices.api.message.BasePropertySet


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.