Package com.sun.jini.discovery
Class MulticastRequest
java.lang.Object
com.sun.jini.discovery.MulticastRequest
Class representing the values in a multicast request.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMulticastRequest(String host, int port, String[] groups, ServiceID[] serviceIDs) Creates a newMulticastRequestinstance containing the given values. -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks if the constraints whose checking was delayed when this instance was decoded, if any, are satisfied.String[]Returns the groups targeted by the request.getHost()Returns the client host name.intgetPort()Returns the client listen port.Returns the service IDs of known lookup services.toString()Returns string representation of this request.
-
Field Details
-
host
The client host. -
port
protected int portThe client listen port. -
groups
The groups of interest. -
serviceIDs
The IDs of known lookup services.
-
-
Constructor Details
-
MulticastRequest
Creates a newMulticastRequestinstance containing the given values. Arrays are copied;nullarray values are considered equivalent to empty arrays.- Parameters:
host- the client hostport- the client listen portgroups- the groups of interestserviceIDs- the IDs of known lookup services- Throws:
NullPointerException- ifhostisnull, or ifgroupsorserviceIDscontainsnullIllegalArgumentException- ifportis out of range
-
-
Method Details
-
getHost
Returns the client host name.- Returns:
- the client host name
-
getPort
public int getPort()Returns the client listen port.- Returns:
- the client listen port
-
getGroups
Returns the groups targeted by the request.- Returns:
- the groups targeted by the request
-
getServiceIDs
Returns the service IDs of known lookup services.- Returns:
- the service IDs of known lookup services
-
checkConstraints
Checks if the constraints whose checking was delayed when this instance was decoded, if any, are satisfied. If the instance was not decoded, but directly constructed, this method does nothing.- Throws:
UnsupportedConstraintException- if unable to satisfy the specified constraintsSecurityException- if the given constraints cannot be satisfied due to insufficient caller permissions, or if the client subject check failsIOException- if an error occurs in interpreting the data
-
toString
Returns string representation of this request.
-