|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.portal.prt.util.AbstractURI
public class 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(String uri)
Constructor with initial URL. |
|
| Method Summary | |
|---|---|
void |
addParameter(String name,
String value)
Adds a parameter with value to the query part. |
String |
getFragment()
Gets the scheme of the current URI. |
String |
getHost()
Gets the Host of the current URI. |
String[] |
getParameters()
Gets all parameters of the query part. |
Enumeration |
getParametersEnumeration()
Gets all parameters of the query part in an Enumeration |
String |
getParameterValue(String name)
Gets the lone value assigned to a parameter from the query part. |
String[] |
getParameterValues(String name)
Gets all values assigned to a parameter from the query part. |
Iterator |
getParameterValuesIterator(String name)
Gets all values assigned to a parameter from the query part as an Iteration. |
String |
getPath()
Gets the path of the current URI. |
String |
getPort()
Gets the port of the current URI. |
String |
getQuery()
Gets the query String. |
String |
getScheme()
Gets the scheme of the current URI. |
String |
getUserInfo()
Gets the UserInfo of the current URI. |
boolean |
isAbsolute()
Gets wether this URI is absolute. |
protected void |
parse(String uri)
parse a given URI |
void |
removeParameter(String name)
Removes the specified parameter from the query part. |
void |
removeParameter(String name,
String value)
Removes the specified name-value pair from the query part. |
void |
removeParameters()
Removes all parameters from the query part. |
void |
setFragment(String fragment)
Sets the fragment of the URI |
void |
setHost(String host)
Sets the Host of the URI |
void |
setPath(String path)
Sets the path of the URI |
void |
setPort(String port)
Sets the port of the URI |
void |
setScheme(String scheme)
Sets the scheme of the URI, e.g. http, https, file, ftp, ...etc. |
void |
setURI(String uri)
Sets the URI handled by this instance. |
void |
setUserInfo(String userInfo)
Sets the User-info of the URI |
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(String uri)
uri - The URI to hanlde.| Method Detail |
|---|
public void setURI(String uri)
uri - protected void parse(String uri)
uri - public void setScheme(String scheme)
scheme - public String getScheme()
public boolean isAbsolute()
public void setFragment(String fragment)
fragment - public String getFragment()
public void setUserInfo(String userInfo)
userInfo - public String getUserInfo()
public void setHost(String host)
host - public String getHost()
public void setPort(String port)
port - public String getPort()
public void setPath(String path)
path - public String getPath()
public void removeParameters()
public void removeParameter(String name)
name - the name of the parameter to be removed
public void removeParameter(String name,
String value)
name - the name of the parameter to be removedvalue -
public void addParameter(String name,
String value)
name - the name of the parameter to add.value - the value of the parameter to add.public String[] getParameterValues(String name)
name - the name of the parameter to get the values of.
public String getParameterValue(String name)
name - the name of the parameter to get the values of.
public Iterator getParameterValuesIterator(String name)
Iteration.
name - the name of the parameter to get the values of.
public Enumeration getParametersEnumeration()
public String[] getParameters()
public String getQuery()
public String toString()
toString in class Object| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||