|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.portal.prt.util.AbstractURI
AbstractURL is a convenience class for manipulation of URLs based on the W3C RFC 2396 (see the World Wide Web Consortium pages). In general a URI consists of the parts
| Constructor Summary | |
AbstractURI()
Constructor. |
|
AbstractURI(java.lang.String uri)
Constructor with initial URL. |
|
| Method Summary | |
void |
addParameter(java.lang.String name,
java.lang.String value)
Adds a parameter with value to the query part. |
java.lang.String |
getFragment()
Gets the scheme of the current URI. |
java.lang.String |
getHost()
Gets the Host of the current URI. |
java.lang.String[] |
getParameters()
Gets all parameters of the query part. |
java.util.Enumeration |
getParametersEnumeration()
Gets all parameters of the query part in an Enumeration |
java.lang.String |
getParameterValue(java.lang.String name)
Gets the lone value assigned to a parameter from the query part. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Gets all values assigned to a parameter from the query part. |
java.util.Iterator |
getParameterValuesIterator(java.lang.String name)
Gets all values assigned to a parameter from the query part as an Iteration. |
java.lang.String |
getPath()
Gets the path of the current URI. |
java.lang.String |
getPort()
Gets the port of the current URI. |
java.lang.String |
getQuery()
Gets the query String. |
java.lang.String |
getScheme()
Gets the scheme of the current URI. |
java.lang.String |
getUserInfo()
Gets the UserInfo of the current URI. |
boolean |
isAbsolute()
Gets wether this URI is absolute. |
protected void |
parse(java.lang.String uri)
parse a given URI |
void |
removeParameter(java.lang.String name)
Removes the specified parameter from the query part. |
void |
removeParameter(java.lang.String name,
java.lang.String value)
Removes the specified name-value pair from the query part. |
void |
removeParameters()
Removes all parameters from the query part. |
void |
setFragment(java.lang.String fragment)
Sets the fragment of the URI |
void |
setHost(java.lang.String host)
Sets the Host of the URI |
void |
setPath(java.lang.String path)
Sets the path of the URI |
void |
setPort(java.lang.String port)
Sets the port of the URI |
void |
setScheme(java.lang.String scheme)
Sets the scheme of the URI, e.g. http, https, file, ftp, ...etc. |
void |
setURI(java.lang.String uri)
Sets the URI handled by this instance. |
void |
setUserInfo(java.lang.String userInfo)
Sets the User-info of the URI |
java.lang.String |
toString()
Gets a string representation of the URI. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractURI()
public AbstractURI(java.lang.String uri)
uri - The URI to hanlde.| Method Detail |
public void setURI(java.lang.String uri)
uri - protected void parse(java.lang.String uri)
uri - public void setScheme(java.lang.String scheme)
scheme - public java.lang.String getScheme()
public boolean isAbsolute()
public void setFragment(java.lang.String fragment)
fragment - public java.lang.String getFragment()
public void setUserInfo(java.lang.String userInfo)
userInfo - public java.lang.String getUserInfo()
public void setHost(java.lang.String host)
host - public java.lang.String getHost()
public void setPort(java.lang.String port)
port - public java.lang.String getPort()
public void setPath(java.lang.String path)
path - public java.lang.String getPath()
public void removeParameters()
public void removeParameter(java.lang.String name)
name - the name of the parameter to be removed
public void removeParameter(java.lang.String name,
java.lang.String value)
name - the name of the parameter to be removedvalue -
public void addParameter(java.lang.String name,
java.lang.String value)
name - the name of the parameter to add.value - the value of the parameter to add.public java.lang.String[] getParameterValues(java.lang.String name)
name - the name of the parameter to get the values of.public java.lang.String getParameterValue(java.lang.String name)
name - the name of the parameter to get the values of.public java.util.Iterator getParameterValuesIterator(java.lang.String name)
Iteration.name - the name of the parameter to get the values of.public java.util.Enumeration getParametersEnumeration()
public java.lang.String[] getParameters()
public java.lang.String getQuery()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||