xsul.dispatcher.routingtable
Class WS

java.lang.Object
  extended byxsul.dispatcher.routingtable.WS

public class WS
extends java.lang.Object

This class represents an element of the routing table.

Contains all informations for connecting and forwarding requests to a WS.

Author:
Alexandre di Costanzo

Constructor Summary
WS()
          Create a default WS element with: host = localhost port = 80 path = / and no pre-connection with the WS.
WS(java.lang.String host, int port, java.lang.String path)
          Create a WS element with no pre-connection.
WS(java.lang.String host, int port, java.lang.String path, java.lang.String protocol)
          Create a WS element with no pre-connection.
 
Method Summary
 java.lang.String getHost()
           
 MSGWSConnection getMsgConnection()
          Not a good implementation because use some methods in message package.
 java.lang.String getPath()
           
 int getPort()
           
 java.lang.String getProtocol()
           
 WsaEndpointReference getWsaElementFaultTo()
           
 void getWsaElementFaultTo(WsaEndpointReference wsaFaultTo)
           
 WsaEndpointReference getWsaElementReplyTo()
           
 java.net.URI getWsaElementTo()
           
 void setHost(java.lang.String host)
           
 void setPath(java.lang.String path)
           
 void setPort(int port)
           
 void setProtocol(java.lang.String protocol)
           
 void setWsaElementReplyTo(WsaEndpointReference wsaReplyTo)
           
 void setWsaElementTo(java.net.URI wsaTo)
           
 java.lang.String toString()
          Print the url of the WS.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WS

public WS()
Create a default WS element with:


WS

public WS(java.lang.String host,
          int port,
          java.lang.String path)
Create a WS element with no pre-connection.

Parameters:
host - WS's host.
port - WS's port number.
path - WS's path on the host.

WS

public WS(java.lang.String host,
          int port,
          java.lang.String path,
          java.lang.String protocol)
Create a WS element with no pre-connection.

Parameters:
host - WS's host.
port - WS's port number.
path - WS's path on the host.
Method Detail

getHost

public java.lang.String getHost()
Returns:
Returns WS's host.

getPort

public int getPort()
Returns:
Returns WS's port number.

getPath

public java.lang.String getPath()
Returns:
Returns WS's path on the host.

setHost

public void setHost(java.lang.String host)
Parameters:
host - WS's host to set.

setPath

public void setPath(java.lang.String path)
Parameters:
path - WS's path on the host to set.

setPort

public void setPort(int port)
Parameters:
port - WS's port number to set.

setProtocol

public void setProtocol(java.lang.String protocol)

getProtocol

public java.lang.String getProtocol()

toString

public java.lang.String toString()
Print the url of the WS.

See Also:
Object.toString()

getWsaElementTo

public java.net.URI getWsaElementTo()
Returns:
the WS-Addressing element To.

getWsaElementReplyTo

public WsaEndpointReference getWsaElementReplyTo()
Returns:
the WS-Addressing element Reply To.

getWsaElementFaultTo

public WsaEndpointReference getWsaElementFaultTo()
Returns:
the WS-Addressing element Fault To.

setWsaElementTo

public void setWsaElementTo(java.net.URI wsaTo)
Parameters:
wsaTo - the WS-Addressing element To.

setWsaElementReplyTo

public void setWsaElementReplyTo(WsaEndpointReference wsaReplyTo)
Parameters:
wsaReplyTo - the WS-Addressing element Reply To.

getWsaElementFaultTo

public void getWsaElementFaultTo(WsaEndpointReference wsaFaultTo)
Parameters:
wsaFaultTo - the WS-Addressing element Fault To

getMsgConnection

public MSGWSConnection getMsgConnection()
Not a good implementation because use some methods in message package.

Returns:
the connection with the WS.


IU Extreme! Lab (http://www.extreme.indiana.edu)