org.apache.sesame.model
Class Request

java.lang.Object
  |
  +--org.apache.sesame.model.Request

public class Request
extends java.lang.Object

Contains all data that will be used to create an HTTP connection to the back end application.

Version:
$Id: Request.java,v 1.2 2002/06/03 18:18:25 vmassol Exp $
Author:
Vincent Massol

Field Summary
private  java.lang.String host
          The application host name
private  int port
          The application host port number
private  java.lang.String uri
          The application URI
 
Constructor Summary
Request()
           
 
Method Summary
 java.lang.String gethost()
           
 int getPort()
           
 java.lang.String getURI()
           
 void setHost(java.lang.String host)
          Sets the application host name.
 void setPort(int port)
          Sets the application host port.
 void setURI(java.lang.String uri)
          Sets the application URI.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

uri

private java.lang.String uri
The application URI

host

private java.lang.String host
The application host name

port

private int port
The application host port number
Constructor Detail

Request

public Request()
Method Detail

setURI

public void setURI(java.lang.String uri)
Sets the application URI.
Parameters:
uri - the application URI

getURI

public java.lang.String getURI()
Returns:
the application URI

setHost

public void setHost(java.lang.String host)
Sets the application host name.
Parameters:
host - the host name (ex: "jakarta.apache.org")

gethost

public java.lang.String gethost()
Returns:
the application host name

setPort

public void setPort(int port)
Sets the application host port.
Parameters:
port - the port

getPort

public int getPort()
Returns:
the application host port

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a string representation used for debugging purpose


Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.