Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.jini.discovery
Class IncomingUnicastResponse

    java.lang.Object
      net.jini.discovery.IncomingUnicastResponse

public class IncomingUnicastResponse
extends Object

This class encapsulates the details of unmarshaling an incoming unicast response.

See Also:
  `IncomingUnicastRequest`

Field Summary
`protected String[]` | `groups` The groups the lookup service was a member of, at the time discovery was performed.
`protected ServiceRegistrar` | `registrar` The registrar we have discovered.

Constructor Summary
`IncomingUnicastResponse(InputStream str)` Construct a new object, initialized by unmarshaling the contents of an input stream.

Method Summary
`boolean` | `equals(Object o)` Two responses are equal if they have the same registrar.
`String[]` | `getGroups()` Return the set of groups of which the lookup service we discovered was a member when we discovered it.
`ServiceRegistrar` | `getRegistrar()` Return the lookup service registrar we have discovered.
`int` | `hashCode()`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### registrar

    protected ServiceRegistrar registrar

  The registrar we have discovered.

### groups

    protected String[] groups

  The groups the lookup service was a member of, at the time discovery was performed. This may be out of date.

Constructor Detail

### IncomingUnicastResponse

    public IncomingUnicastResponse(InputStream str)
                            throws IOException,
                                   ClassNotFoundException

  Construct a new object, initialized by unmarshaling the contents of an input stream.

Parameters:
  `str` - the stream from which to unmarshal the response
Throws:
  `IOException` - an error occurred while unmarshaling the response
  `ClassNotFoundException` - some of the lookup service classes could not be found or downloaded

Method Detail

### getRegistrar

    public ServiceRegistrar getRegistrar()

  Return the lookup service registrar we have discovered.

  Returns:
    the lookup service registrar we have discovered

### getGroups

    public String[] getGroups()

  Return the set of groups of which the lookup service we discovered was a member when we discovered it. This set may be out of date.

  Returns:
    the set of groups to which the lookup service was a member when we discovered it
  See Also:
    `ServiceRegistrar.getGroups()`

### hashCode

    public int hashCode()

### equals

    public boolean equals(Object o)

  Two responses are equal if they have the same registrar.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Sun Microsystems, Inc. All rights reserved