Exemplo n.º 1
0
  /** {@inheritDoc} */
  public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    super.readExternal(in);

    in.readInt(); // Consume version, as not required for now

    _destination = (String) in.readObject();
  }
Exemplo n.º 2
0
  /** {@inheritDoc} */
  public void writeExternal(ObjectOutput out) throws IOException {
    super.writeExternal(out);

    out.writeInt(VERSION);

    out.writeObject(_destination);
  }
Exemplo n.º 3
0
  /** {@inheritDoc} */
  public void writeExternal(ObjectOutput out) throws IOException {
    super.writeExternal(out);

    out.writeInt(VERSION);

    out.writeObject(_serviceType);
    out.writeObject(_interface);
    out.writeObject(_operation);
    out.writeObject(_fault);

    // Serialize version 2 additional elements
    out.writeBoolean(_internal);
  }
Exemplo n.º 4
0
  /** {@inheritDoc} */
  public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    super.readExternal(in);

    int version = in.readInt();

    _serviceType = (String) in.readObject();
    _interface = (String) in.readObject();
    _operation = (String) in.readObject();
    _fault = (String) in.readObject();

    // Deserialize version 2 additional elements
    if (version >= 2) {
      _internal = in.readBoolean();
    }
  }