|
|||||||||
| Home >> All >> org >> chiba >> xml >> xforms >> [ connector overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.chiba.xml.xforms.connector
Class URI

java.lang.Objectorg.chiba.xml.xforms.connector.URI
- public class URI
- extends java.lang.Object
This class is a simple URI implementation which parses string and URLs.
This is not complete URI implementation. Only the part before the first
colon (:) is treated as a scheme. The part after a hashmark
(#) is treated as a fragment. The part between a colon and
a hashmark is treated as path.
If there is no colon, the URI is regarded to have no scheme. If there is no hashmark, the URI is regarded to have no fragment, respectively. Thus, if there is neither a colon nor a hashmark, the URI is regarded to consist of a path only.
- Version:
- $Id: URI.java,v 1.2 2003/07/31 08:18:18 unl Exp $
| Field Summary | |
private java.lang.String |
fragment
|
private java.lang.String |
path
|
private java.lang.String |
scheme
|
| Constructor Summary | |
URI(java.lang.String uri)
Creates a new URI from a string. |
|
URI(java.net.URL url)
Creates a new URI from an URL. |
|
| Method Summary | |
java.lang.String |
getFragment()
Returns the fragment of this URI. |
java.lang.String |
getPath()
Returns the path of this URI. |
java.lang.String |
getScheme()
Returns the scheme of this URI. |
boolean |
hasFragment()
Checks wether this URI has a fragment. |
boolean |
hasScheme()
Checks wether this URI has a scheme. |
private void |
parseInputString(java.lang.String uri)
|
java.lang.String |
toRemoteString()
Returns a string representation of this URI without the fragment part. |
java.lang.String |
toString()
Returns a string representation of this URI. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
scheme
private java.lang.String scheme
path
private java.lang.String path
fragment
private java.lang.String fragment
| Constructor Detail |
URI
public URI(java.lang.String uri)
- Creates a new URI from a string.
URI
public URI(java.net.URL url)
- Creates a new URI from an URL.
| Method Detail |
hasScheme
public boolean hasScheme()
- Checks wether this URI has a scheme.
hasFragment
public boolean hasFragment()
- Checks wether this URI has a fragment.
getScheme
public java.lang.String getScheme()
- Returns the scheme of this URI.
getPath
public java.lang.String getPath()
- Returns the path of this URI.
getFragment
public java.lang.String getFragment()
- Returns the fragment of this URI.
toString
public java.lang.String toString()
- Returns a string representation of this URI.
toRemoteString
public java.lang.String toRemoteString()
- Returns a string representation of this URI without the fragment part.
parseInputString
private void parseInputString(java.lang.String uri)
|
|||||||||
| Home >> All >> org >> chiba >> xml >> xforms >> [ connector overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.chiba.xml.xforms.connector.URI