org.sapia.ubik.net
Class Request

java.lang.Object
  extended by org.sapia.ubik.net.Request

public class Request
extends java.lang.Object

Models a request to a server. Encapsulates the connection corresponding to the network link with the client making the request, as well as the address of the server that received the request.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Constructor Summary
Request(Connection client, ServerAddress localHost)
          Creates an instance of this class.
 
Method Summary
 Connection getConnection()
          Returns the connection which is linking to the client that made the request.
 ServerAddress getServerAddress()
          Returns the address of the server that received the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Request

public Request(Connection client,
               ServerAddress localHost)
Creates an instance of this class.

Parameters:
client - the Connection which consists of the network link with the client.
localHost - the ServerAddress of the server that received the request.
Method Detail

getServerAddress

public ServerAddress getServerAddress()
Returns the address of the server that received the request.

Returns:
a ServerAddress.

getConnection

public Connection getConnection()
Returns the connection which is linking to the client that made the request.

Returns:
a Connection instance.


Copyright © 2010 Sapia OSS. All Rights Reserved.