wttools.protocols
Class URI

java.lang.Object
  |
  +--wttools.protocols.URI

public class URI
extends java.lang.Object

Class URI implements

Version:
$Revision: 1.5 $
Author:
Artur Hefczyc

Field Summary
protected  URIIfc uri
           
 
Constructor Summary
URI(java.lang.String uri)
          Creates a new URI instance.
URI(java.net.URL uri)
          Creates a new URI instance.
 
Method Summary
 java.lang.String getHost()
           
 java.lang.String getHostIP()
          getHostIP method performs
 java.lang.String getPassword()
          getPassword method performs
 java.lang.String getPath()
           
 java.lang.String getPathAndQuery()
           
 int getPort()
           
 java.lang.String getProtocol()
          getProtocol method performs
 java.lang.String getQuery()
          getQuery method performs
 java.lang.String getUser()
          getUser method performs
 void setHostIP(java.lang.String ip)
          setHostIP method performs
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

uri

protected URIIfc uri
Constructor Detail

URI

public URI(java.lang.String uri)
    throws java.net.MalformedURLException
Creates a new URI instance.
Parameters:
uri - a String value
Throws:
java.net.MalformedURLException - if an error occurs

URI

public URI(java.net.URL uri)
    throws java.net.MalformedURLException
Creates a new URI instance.
Parameters:
uri - an URL value
Method Detail

getProtocol

public java.lang.String getProtocol()
getProtocol method performs
Returns:
a String value

getHost

public java.lang.String getHost()

getHostIP

public java.lang.String getHostIP()
                           throws java.net.UnknownHostException
getHostIP method performs
Returns:
a String value
Throws:
java.net.UnknownHostException - if an error occurs

getPort

public int getPort()

setHostIP

public void setHostIP(java.lang.String ip)
setHostIP method performs
Parameters:
ip - a String value

getUser

public java.lang.String getUser()
getUser method performs
Returns:
a String value

getPassword

public java.lang.String getPassword()
getPassword method performs
Returns:
a String value

getQuery

public java.lang.String getQuery()
getQuery method performs
Returns:
a String value

getPath

public java.lang.String getPath()

getPathAndQuery

public java.lang.String getPathAndQuery()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright GNU, wttools developers Team.