@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
Constructor and Description |
---|
Url(String url)
Initializes a new instance of the
Url with the specified URL. |
Url(String url,
String baseUrl)
Initializes a new instance of the
Url with the specified URL
and base URL. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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. |
String |
getHash()
Gets or sets a string representation for the specified URL hash segment.
|
String |
getHost()
Gets or sets a string representation for the specified URL host.
|
String |
getHostname()
Gets or sets a string representation for the specified URL hostname.
|
String |
getHref()
Gets or sets a serialized representation for the specified URL instance.
|
String |
getOrigin()
Gets a string representation for the specified URL origin.
|
String |
getPassword()
Gets or sets a string representation for the specified URL password.
|
String |
getPathname()
Gets or sets a string representation for the specified URL path.
|
String |
getPort()
Gets or sets a string representation for the specified URL port.
|
String |
getProtocol()
Gets or sets a string representation for the specified URL schema.
|
String |
getSearch()
Gets or sets a string representation for the specified URL search segment.
|
IUrlSearchParams |
getSearchParams()
Gets an associated
IUrlSearchParams object. |
String |
getUsername()
Gets or sets a string representation for the specified URL username.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
setHash(String value)
Gets or sets a string representation for the specified URL hash segment.
|
void |
setHost(String value)
Gets or sets a string representation for the specified URL host.
|
void |
setHostname(String value)
Gets or sets a string representation for the specified URL hostname.
|
void |
setHref(String value)
Gets or sets a serialized representation for the specified URL instance.
|
void |
setPassword(String value)
Gets or sets a string representation for the specified URL password.
|
void |
setPathname(String value)
Gets or sets a string representation for the specified URL path.
|
void |
setPort(String value)
Gets or sets a string representation for the specified URL port.
|
void |
setProtocol(String value)
Gets or sets a string representation for the specified URL schema.
|
void |
setSearch(String value)
Gets or sets a string representation for the specified URL search segment.
|
void |
setUsername(String value)
Gets or sets a string representation for the specified URL username.
|
String |
toJson()
Returns a
String that represents this instance. |
String |
toString()
Returns a
String that represents this instance. |
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public Url(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 String getOrigin()
Gets a string representation for the specified URL origin.
Value: The origin.@DOMNameAttribute(name="username") public String getUsername()
Gets or sets a string representation for the specified URL username.
Value: The username.@DOMNameAttribute(name="username") public void setUsername(String value)
Gets or sets a string representation for the specified URL username.
Value: The username.@DOMNameAttribute(name="password") public String getPassword()
Gets or sets a string representation for the specified URL password.
Value: The password.@DOMNameAttribute(name="password") public void setPassword(String value)
Gets or sets a string representation for the specified URL password.
Value: The password.@DOMNameAttribute(name="protocol") public String getProtocol()
Gets or sets a string representation for the specified URL schema.
Value: The protocol.@DOMNameAttribute(name="protocol") public void setProtocol(String value)
Gets or sets a string representation for the specified URL schema.
Value: The protocol.@DOMNameAttribute(name="host") public String getHost()
Gets or sets a string representation for the specified URL host.
Value: The host.@DOMNameAttribute(name="host") public void setHost(String value)
Gets or sets a string representation for the specified URL host.
Value: The host.@DOMNameAttribute(name="hostname") public 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(String value)
Gets or sets a string representation for the specified URL hostname.
Value: The name of the host.@DOMNameAttribute(name="port") public String getPort()
Gets or sets a string representation for the specified URL port.
Value: The port.@DOMNameAttribute(name="port") public void setPort(String value)
Gets or sets a string representation for the specified URL port.
Value: The port.@DOMNameAttribute(name="pathname") public 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(String value)
Gets or sets a string representation for the specified URL path.
Value: The name of the path.@DOMNameAttribute(name="search") public String getSearch()
Gets or sets a string representation for the specified URL search segment.
Value: The search.@DOMNameAttribute(name="search") public void setSearch(String value)
Gets or sets a string representation for the specified URL search segment.
Value: The search.@DOMNameAttribute(name="toJSON") public String toJson()
Returns a String
that represents this instance.
String
that represents this instance.@DOMNameAttribute(name="hash") public String getHash()
Gets or sets a string representation for the specified URL hash segment.
Value: The hash.@DOMNameAttribute(name="hash") public void setHash(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 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(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 boolean equals(Object obj)
Determines whether the specified Object
, is equal to this instance.
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.