public class AbstractURI extends Object
| Constructor and Description |
|---|
AbstractURI()
Constructor.
|
AbstractURI(String uri)
Constructor with initial URL.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public AbstractURI()
public AbstractURI(String uri)
uri - The URI to hanlde.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 removedpublic 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()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice