@DOMObjectAttribute @DOMNameAttribute(name="Url") public class Url extends DOMObject
Provides an object representation of a universal identifier (URL).
| Modifier and Type | Field and Description |
|---|---|
com.aspose.html.url.UrlRecord |
UrlRecord |
PropertyChanged, PropertyChangedDelegate| Constructor and Description |
|---|
Url(java.lang.String url)
Initializes a new instance of the
Url with the specified URL. |
Url(java.lang.String url,
java.lang.String baseUrl)
Initializes a new instance of the
Url with the specified URL
and base URL. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Determines whether the specified
Object, is equal to this instance. |
boolean |
equals(Url url)
Determines whether the specified
Url, is equal to this instance. |
boolean |
equals(Url url,
boolean excludeFragments)
Determines whether the specified
Url, is equal to this instance. |
java.lang.String |
getHash()
Gets or sets a string representation for the specified URL hash segment.
|
java.lang.String |
getHost()
Gets or sets a string representation for the specified URL host.
|
java.lang.String |
getHostname()
Gets or sets a string representation for the specified URL hostname.
|
java.lang.String |
getHref()
Gets or sets a serialized representation for the specified URL instance.
|
java.lang.String |
getOrigin()
Gets a string representation for the specified URL origin.
|
java.lang.String |
getPassword()
Gets or sets a string representation for the specified URL password.
|
java.lang.String |
getPathname()
Gets or sets a string representation for the specified URL path.
|
java.lang.String |
getPort()
Gets or sets a string representation for the specified URL port.
|
java.lang.String |
getProtocol()
Gets or sets a string representation for the specified URL schema.
|
java.lang.String |
getSearch()
Gets or sets a string representation for the specified URL search segment.
|
IUrlSearchParams |
getSearchParams()
Gets an associated
IUrlSearchParams object. |
java.lang.String |
getUsername()
Gets or sets a string representation for the specified URL username.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
setHash(java.lang.String value)
Gets or sets a string representation for the specified URL hash segment.
|
void |
setHost(java.lang.String value)
Gets or sets a string representation for the specified URL host.
|
void |
setHostname(java.lang.String value)
Gets or sets a string representation for the specified URL hostname.
|
void |
setHref(java.lang.String value)
Gets or sets a serialized representation for the specified URL instance.
|
void |
setPassword(java.lang.String value)
Gets or sets a string representation for the specified URL password.
|
void |
setPathname(java.lang.String value)
Gets or sets a string representation for the specified URL path.
|
void |
setPort(java.lang.String value)
Gets or sets a string representation for the specified URL port.
|
void |
setProtocol(java.lang.String value)
Gets or sets a string representation for the specified URL schema.
|
void |
setSearch(java.lang.String value)
Gets or sets a string representation for the specified URL search segment.
|
void |
setUsername(java.lang.String value)
Gets or sets a string representation for the specified URL username.
|
java.lang.String |
toJson()
Returns a
String that represents this instance. |
java.lang.String |
toString()
Returns a
String that represents this instance. |
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBindingpublic Url(java.lang.String url)
Initializes a new instance of the Url with the specified URL.
url - The URL to process.Error - TypeError: raised if url cannot be parsed as valid URL.@DOMNameAttribute(name="origin") public java.lang.String getOrigin()
Gets a string representation for the specified URL origin.
Value: The origin.@DOMNameAttribute(name="username") public java.lang.String getUsername()
Gets or sets a string representation for the specified URL username.
Value: The username.@DOMNameAttribute(name="username") public void setUsername(java.lang.String value)
Gets or sets a string representation for the specified URL username.
Value: The username.@DOMNameAttribute(name="password") public java.lang.String getPassword()
Gets or sets a string representation for the specified URL password.
Value: The password.@DOMNameAttribute(name="password") public void setPassword(java.lang.String value)
Gets or sets a string representation for the specified URL password.
Value: The password.@DOMNameAttribute(name="protocol") public java.lang.String getProtocol()
Gets or sets a string representation for the specified URL schema.
Value: The protocol.@DOMNameAttribute(name="protocol") public void setProtocol(java.lang.String value)
Gets or sets a string representation for the specified URL schema.
Value: The protocol.@DOMNameAttribute(name="host") public java.lang.String getHost()
Gets or sets a string representation for the specified URL host.
Value: The host.@DOMNameAttribute(name="host") public void setHost(java.lang.String value)
Gets or sets a string representation for the specified URL host.
Value: The host.@DOMNameAttribute(name="hostname") public java.lang.String getHostname()
Gets or sets a string representation for the specified URL hostname.
Value: The name of the host.@DOMNameAttribute(name="hostname") public void setHostname(java.lang.String value)
Gets or sets a string representation for the specified URL hostname.
Value: The name of the host.@DOMNameAttribute(name="port") public java.lang.String getPort()
Gets or sets a string representation for the specified URL port.
Value: The port.@DOMNameAttribute(name="port") public void setPort(java.lang.String value)
Gets or sets a string representation for the specified URL port.
Value: The port.@DOMNameAttribute(name="pathname") public java.lang.String getPathname()
Gets or sets a string representation for the specified URL path.
Value: The name of the path.@DOMNameAttribute(name="pathname") public void setPathname(java.lang.String value)
Gets or sets a string representation for the specified URL path.
Value: The name of the path.@DOMNameAttribute(name="search") public java.lang.String getSearch()
Gets or sets a string representation for the specified URL search segment.
Value: The search.@DOMNameAttribute(name="search") public void setSearch(java.lang.String value)
Gets or sets a string representation for the specified URL search segment.
Value: The search.@DOMNameAttribute(name="toJSON") public java.lang.String toJson()
Returns a String that represents this instance.
String that represents this instance.@DOMNameAttribute(name="hash") public java.lang.String getHash()
Gets or sets a string representation for the specified URL hash segment.
Value: The hash.@DOMNameAttribute(name="hash") public void setHash(java.lang.String value)
Gets or sets a string representation for the specified URL hash segment.
Value: The hash.@DOMNameAttribute(name="searchParams") public IUrlSearchParams getSearchParams()
Gets an associated IUrlSearchParams object.
IUrlSearchParams object.@DOMNameAttribute(name="href") public java.lang.String getHref()
Gets or sets a serialized representation for the specified URL instance.
Error - TypeError: raised if value cannot be parsed as valid URL.
Value:
The href.@DOMNameAttribute(name="href") public void setHref(java.lang.String value)
Gets or sets a serialized representation for the specified URL instance.
Error - TypeError: raised if value cannot be parsed as valid URL.
Value:
The href.public java.lang.String toString()
Returns a String that represents this instance.
toString in class java.lang.ObjectString that represents this instance.public boolean equals(java.lang.Object obj)
Determines whether the specified Object, is equal to this instance.
equals in class java.lang.Objectobj - The Object to compare with this instance.true if the specified Object is equal to this instance; otherwise, false.public boolean equals(Url url)
Determines whether the specified Url, is equal to this instance.
public boolean equals(Url url, boolean excludeFragments)
Determines whether the specified Url, is equal to this instance.
public int hashCode()
Returns a hash code for this instance.
hashCode in class java.lang.Object