wttools.protocols.simple
Class SimpleURI

java.lang.Object
  |
  +--wttools.protocols.simple.SimpleURI
All Implemented Interfaces:
URIIfc

public class SimpleURI
extends java.lang.Object
implements URIIfc

Class URI implements

Version:
$Revision: 1.3 $
Author:
Artur Hefczyc

Field Summary
protected  java.lang.String ip_num
           
protected  java.lang.String uri
           
 
Constructor Summary
SimpleURI(java.lang.String uri)
          Creates a new URI instance.
SimpleURI(java.net.URL url)
           
 
Method Summary
 java.lang.String canonicalizePath(java.lang.String path)
           
 int defaultPort(java.lang.String protocol)
           
 java.lang.String getFileName()
           
 java.lang.String getHost()
           
 java.lang.String getHostIP()
           
 java.lang.String getPassword()
           
 java.lang.String getPath()
           
 java.lang.String getPathAndQuery()
           
 int getPort()
           
 java.lang.String getProtocol()
           
 java.lang.String getQuery()
           
 java.lang.String getScheme()
           
 java.lang.String getUri()
          Gets the value of uri
 java.lang.String getUser()
           
 void setHostIP(java.lang.String ip)
           
 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 java.lang.String uri

ip_num

protected java.lang.String ip_num
Constructor Detail

SimpleURI

public SimpleURI(java.lang.String uri)
          throws java.net.MalformedURLException
Creates a new URI instance.
Parameters:
uri - a String value

SimpleURI

public SimpleURI(java.net.URL url)
Method Detail

getUri

public java.lang.String getUri()
Gets the value of uri
Returns:
the value of uri

getProtocol

public java.lang.String getProtocol()
Specified by:
getProtocol in interface URIIfc

getScheme

public java.lang.String getScheme()
Specified by:
getScheme in interface URIIfc

getHost

public java.lang.String getHost()
Specified by:
getHost in interface URIIfc

getHostIP

public java.lang.String getHostIP()
                           throws java.net.UnknownHostException
Specified by:
getHostIP in interface URIIfc

setHostIP

public void setHostIP(java.lang.String ip)
Specified by:
setHostIP in interface URIIfc

getPort

public int getPort()
Specified by:
getPort in interface URIIfc

getUser

public java.lang.String getUser()
Specified by:
getUser in interface URIIfc

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface URIIfc

getPath

public java.lang.String getPath()
Specified by:
getPath in interface URIIfc

getFileName

public java.lang.String getFileName()

getQuery

public java.lang.String getQuery()
Specified by:
getQuery in interface URIIfc

getPathAndQuery

public java.lang.String getPathAndQuery()
Specified by:
getPathAndQuery in interface URIIfc

defaultPort

public int defaultPort(java.lang.String protocol)
Specified by:
defaultPort in interface URIIfc

canonicalizePath

public java.lang.String canonicalizePath(java.lang.String path)
Specified by:
canonicalizePath in interface URIIfc

toString

public java.lang.String toString()
Specified by:
toString in interface URIIfc
Overrides:
toString in class java.lang.Object


Copyright GNU, wttools developers Team.