Class SoapRef

java.lang.Object
org.apache.cxf.aegis.type.encoded.SoapRef

public class SoapRef extends Object
SoapRef represents an encoded SOAP 1.1 href or SOAP 1.2 ref object. This data class is updated when the ref is resolved which can be immedately when the ref is resolved, or later when an instance with the referenced id is unmarshalled.

When the reference is resolved, an optional Action will be invoked which is commonly used to update a property on the source object of the reference.

  • Constructor Details

    • SoapRef

      public SoapRef()
  • Method Details

    • get

      public Object get()
      Gets the referenced object instance or null if the reference has not been resolved yet;
      Returns:
      the referenced object instance or null
    • set

      public void set(Object object)
      Sets the referenced object instance. If an action is registered the onSet method is invoked.
      Parameters:
      object - the reference instance; not null
    • setAction

      public void setAction(SoapRef.Action action)
      Registers an action to invoke when the instance is set. If the instance, has already been set, the onSet method will immedately be invoked.