- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QUrl>
Convenient interface for working with URLs
Java wrapper for Qt's class QUrl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QUrl::ComponentFormattingOptionstatic final class
QFlags type for enumQUrl.ComponentFormattingOption
static interface
Supertype interface forQUrl.UrlFormattingOption
andQUrl.ComponentFormattingOption
to be joined in QFiags typeQUrl.FormattingOptions
static final class
QFlags type for joiningQUrl.UrlFormattingOption
andQUrl.ComponentFormattingOption
.static enum
Java wrapper for Qt enum QUrl::ParsingModestatic enum
Java wrapper for Qt enum QUrl::UrlFormattingOptionstatic enum
Java wrapper for Qt enum QUrl::UserInputResolutionOptionstatic final class
QFlags type for enumQUrl.UserInputResolutionOption
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQUrl()
See QUrl::QUrl()See QUrl::QUrl(QUrl)protected
Constructor for internal use only.Overloaded constructor forQUrl(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
.QUrl
(String url, QUrl.ParsingMode mode) -
Method Summary
Modifier and TypeMethodDescriptionfinal QUrl
adjusted
(QUrl.FormattingOption... options) final QUrl
adjusted
(QUrl.FormattingOptions options) final String
Overloaded function forauthority(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(0)
.final String
authority
(QUrl.ComponentFormattingOption... options) Overloaded function forauthority(io.qt.core.QUrl.ComponentFormattingOptions)
.final String
authority
(QUrl.ComponentFormattingOptions options) final void
clear()
See QUrl::clear()clone()
int
final void
detach()
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final String
final String
fileName()
Overloaded function forfileName(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
.final String
fileName
(QUrl.ComponentFormattingOption... options) Overloaded function forfileName(io.qt.core.QUrl.ComponentFormattingOptions)
.final String
fileName
(QUrl.ComponentFormattingOptions options) final String
fragment()
Overloaded function forfragment(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(0)
.final String
fragment
(QUrl.ComponentFormattingOption... options) Overloaded function forfragment(io.qt.core.QUrl.ComponentFormattingOptions)
.final String
fragment
(QUrl.ComponentFormattingOptions options) static String
fromAce
(QByteArray arg__1) static QUrl
fromClassPath
(String classpath) Deprecated.static QUrl
fromEncoded
(QByteArray url) Overloaded function forfromEncoded(io.qt.core.QByteArray, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
.static QUrl
fromEncoded
(QByteArray url, QUrl.ParsingMode mode) static QUrl
fromLocalFile
(String localfile) static String
fromPercentEncoding
(QByteArray arg__1) fromStringList
(Collection<String> uris) Overloaded function forfromStringList(java.util.Collection, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
.fromStringList
(Collection<String> uris, QUrl.ParsingMode mode) static QUrl
fromUserInput
(String userInput) static QUrl
fromUserInput
(String userInput, String workingDirectory) Overloaded function forfromUserInput(java.lang.String, java.lang.String, io.qt.core.QUrl.UserInputResolutionOptions)
withoptions = new io.qt.core.QUrl.UserInputResolutionOptions(0)
.static QUrl
fromUserInput
(String userInput, String workingDirectory, QUrl.UserInputResolutionOption... options) Overloaded function forfromUserInput(java.lang.String, java.lang.String, io.qt.core.QUrl.UserInputResolutionOptions)
.static QUrl
fromUserInput
(String userInput, String workingDirectory, QUrl.UserInputResolutionOptions options) final boolean
int
hashCode()
final boolean
hasQuery()
final String
host()
Overloaded function forhost(io.qt.core.QUrl.ComponentFormattingOptions)
witharg__1 = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
.final String
host
(QUrl.ComponentFormattingOption... arg__1) Overloaded function forhost(io.qt.core.QUrl.ComponentFormattingOptions)
.final String
host
(QUrl.ComponentFormattingOptions arg__1) static QStringList
final boolean
final boolean
isEmpty()
final boolean
final boolean
isParentOf
(QUrl url) final boolean
final boolean
isValid()
final boolean
matches
(QUrl url, QUrl.FormattingOptions options) final String
password()
Overloaded function forpassword(io.qt.core.QUrl.ComponentFormattingOptions)
witharg__1 = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
.final String
password
(QUrl.ComponentFormattingOption... arg__1) Overloaded function forpassword(io.qt.core.QUrl.ComponentFormattingOptions)
.final String
final String
path()
Overloaded function forpath(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
.final String
path
(QUrl.ComponentFormattingOption... options) Overloaded function forpath(io.qt.core.QUrl.ComponentFormattingOptions)
.final String
path
(QUrl.ComponentFormattingOptions options) final int
port()
Overloaded function forport(int)
withdefaultPort = -1
.final int
port
(int defaultPort) final String
query()
Overloaded function forquery(io.qt.core.QUrl.ComponentFormattingOptions)
witharg__1 = new io.qt.core.QUrl.ComponentFormattingOptions(0)
.final String
query
(QUrl.ComponentFormattingOption... arg__1) Overloaded function forquery(io.qt.core.QUrl.ComponentFormattingOptions)
.final String
query
(QUrl.ComponentFormattingOptions arg__1) void
readFrom
(QDataStream arg__1) final QUrl
final String
scheme()
final void
setAuthority
(String authority) Overloaded function forsetAuthority(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
.final void
setAuthority
(String authority, QUrl.ParsingMode mode) final void
setFragment
(String fragment) Overloaded function forsetFragment(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
.final void
setFragment
(String fragment, QUrl.ParsingMode mode) final void
Overloaded function forsetHost(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.DecodedMode
.final void
setHost
(String host, QUrl.ParsingMode mode) static void
setIdnWhitelist
(Collection<String> arg__1) final void
setPassword
(String password) Overloaded function forsetPassword(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.DecodedMode
.final void
setPassword
(String password, QUrl.ParsingMode mode) final void
Overloaded function forsetPath(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.DecodedMode
.final void
setPath
(String path, QUrl.ParsingMode mode) final void
setPort
(int port) final void
final void
Overloaded function forsetQuery(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
.final void
setQuery
(String query, QUrl.ParsingMode mode) final void
final void
Overloaded function forsetUrl(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
.final void
setUrl
(String url, QUrl.ParsingMode mode) final void
setUserInfo
(String userInfo) Overloaded function forsetUserInfo(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
.final void
setUserInfo
(String userInfo, QUrl.ParsingMode mode) final void
setUserName
(String userName) Overloaded function forsetUserName(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.DecodedMode
.final void
setUserName
(String userName, QUrl.ParsingMode mode) final void
static QByteArray
final String
Overloaded function fortoDisplayString(io.qt.core.QUrl.FormattingOptions)
withoptions = new FormattingOptions(ComponentFormattingOption.PrettyDecoded)
.final String
toDisplayString
(QUrl.FormattingOption... options) final String
toDisplayString
(QUrl.FormattingOptions options) final QByteArray
Overloaded function fortoEncoded(io.qt.core.QUrl.FormattingOptions)
withoptions = new FormattingOptions(ComponentFormattingOption.PrettyDecoded)
.final QByteArray
toEncoded
(QUrl.FormattingOption... options) final QByteArray
toEncoded
(QUrl.FormattingOptions options) final String
static QByteArray
toPercentEncoding
(String arg__1) Overloaded function fortoPercentEncoding(java.lang.String, io.qt.core.QByteArray, io.qt.core.QByteArray)
static QByteArray
toPercentEncoding
(String arg__1, QByteArray exclude) Overloaded function fortoPercentEncoding(java.lang.String, io.qt.core.QByteArray, io.qt.core.QByteArray)
withinclude = new io.qt.core.QByteArray()
.static QByteArray
toPercentEncoding
(String arg__1, QByteArray exclude, QByteArray include) final String
Deprecated.final String
topLevelDomain
(QUrl.ComponentFormattingOption... options) Deprecated.final String
Deprecated.final String
toString()
Overloaded function fortoString(io.qt.core.QUrl.FormattingOptions)
withoptions = new FormattingOptions(ComponentFormattingOption.PrettyDecoded)
.final String
toString
(QUrl.FormattingOption... options) final String
toString
(QUrl.FormattingOptions options) static QStringList
toStringList
(Collection<? extends QUrl> uris) Overloaded function fortoStringList(java.util.Collection, io.qt.core.QUrl.FormattingOptions)
withoptions = new FormattingOptions(ComponentFormattingOption.PrettyDecoded)
.static QStringList
toStringList
(Collection<? extends QUrl> uris, QUrl.FormattingOption... options) static QStringList
toStringList
(Collection<? extends QUrl> uris, QUrl.FormattingOptions options) final String
url()
Overloaded function forurl(io.qt.core.QUrl.FormattingOptions)
withoptions = new FormattingOptions(ComponentFormattingOption.PrettyDecoded)
.final String
url
(QUrl.FormattingOption... options) final String
url
(QUrl.FormattingOptions options) final String
userInfo()
Overloaded function foruserInfo(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(0)
.final String
userInfo
(QUrl.ComponentFormattingOption... options) Overloaded function foruserInfo(io.qt.core.QUrl.ComponentFormattingOptions)
.final String
userInfo
(QUrl.ComponentFormattingOptions options) final String
userName()
Overloaded function foruserName(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
.final String
userName
(QUrl.ComponentFormattingOption... options) Overloaded function foruserName(io.qt.core.QUrl.ComponentFormattingOptions)
.final String
userName
(QUrl.ComponentFormattingOptions options) void
writeTo
(QDataStream arg__1) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QUrl
public QUrl()See QUrl::QUrl()
-
QUrl
Overloaded constructor for
QUrl(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
. -
QUrl
-
QUrl
See QUrl::QUrl(QUrl)
-
QUrl
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
adjusted
-
authority
Overloaded function for
authority(io.qt.core.QUrl.ComponentFormattingOptions)
. -
authority
Overloaded function for
authority(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(0)
. -
authority
-
clear
See QUrl::clear()
-
detach
-
errorString
-
fileName
Overloaded function for
fileName(io.qt.core.QUrl.ComponentFormattingOptions)
. -
fileName
Overloaded function for
fileName(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
. -
fileName
-
fragment
Overloaded function for
fragment(io.qt.core.QUrl.ComponentFormattingOptions)
. -
fragment
Overloaded function for
fragment(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(0)
. -
fragment
-
hasFragment
-
hasQuery
-
host
Overloaded function for
host(io.qt.core.QUrl.ComponentFormattingOptions)
. -
host
Overloaded function for
host(io.qt.core.QUrl.ComponentFormattingOptions)
witharg__1 = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
. -
host
-
isDetached
-
isEmpty
-
isLocalFile
-
isParentOf
-
isRelative
-
isValid
-
matches
-
writeTo
-
readFrom
-
password
Overloaded function for
password(io.qt.core.QUrl.ComponentFormattingOptions)
. -
password
Overloaded function for
password(io.qt.core.QUrl.ComponentFormattingOptions)
witharg__1 = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
. -
password
-
path
Overloaded function for
path(io.qt.core.QUrl.ComponentFormattingOptions)
. -
path
Overloaded function for
path(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
. -
path
-
port
Overloaded function for
port(int)
withdefaultPort = -1
. -
port
-
query
Overloaded function for
query(io.qt.core.QUrl.ComponentFormattingOptions)
. -
query
Overloaded function for
query(io.qt.core.QUrl.ComponentFormattingOptions)
witharg__1 = new io.qt.core.QUrl.ComponentFormattingOptions(0)
. -
query
-
resolved
-
scheme
-
setAuthority
Overloaded function for
setAuthority(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
. -
setAuthority
-
setFragment
Overloaded function for
setFragment(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
. -
setFragment
-
setHost
Overloaded function for
setHost(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.DecodedMode
. -
setHost
-
setPassword
Overloaded function for
setPassword(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.DecodedMode
. -
setPassword
-
setPath
Overloaded function for
setPath(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.DecodedMode
. -
setPath
-
setPort
-
setQuery
Overloaded function for
setQuery(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
. -
setQuery
-
setQuery
-
setScheme
-
setUrl
Overloaded function for
setUrl(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
. -
setUrl
-
setUserInfo
Overloaded function for
setUserInfo(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
. -
setUserInfo
-
setUserName
Overloaded function for
setUserName(java.lang.String, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.DecodedMode
. -
setUserName
-
swap
-
toDisplayString
Overloaded function for
toDisplayString(io.qt.core.QUrl.FormattingOptions)
withoptions = new FormattingOptions(ComponentFormattingOption.PrettyDecoded)
. -
toDisplayString
-
toEncoded
Overloaded function for
toEncoded(io.qt.core.QUrl.FormattingOptions)
withoptions = new FormattingOptions(ComponentFormattingOption.PrettyDecoded)
. -
toEncoded
-
toLocalFile
-
toString
Overloaded function for
toString(io.qt.core.QUrl.FormattingOptions)
withoptions = new FormattingOptions(ComponentFormattingOption.PrettyDecoded)
. -
toString
-
topLevelDomain
@Deprecated @QtUninvokable public final String topLevelDomain(QUrl.ComponentFormattingOption... options) Deprecated.Overloaded function for
topLevelDomain(io.qt.core.QUrl.ComponentFormattingOptions)
. -
topLevelDomain
Deprecated.Overloaded function for
topLevelDomain(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
. -
topLevelDomain
@Deprecated @QtUninvokable public final String topLevelDomain(QUrl.ComponentFormattingOptions options) Deprecated. -
url
Overloaded function for
url(io.qt.core.QUrl.FormattingOptions)
withoptions = new FormattingOptions(ComponentFormattingOption.PrettyDecoded)
. -
url
-
userInfo
Overloaded function for
userInfo(io.qt.core.QUrl.ComponentFormattingOptions)
. -
userInfo
Overloaded function for
userInfo(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(0)
. -
userInfo
-
userName
Overloaded function for
userName(io.qt.core.QUrl.ComponentFormattingOptions)
. -
userName
Overloaded function for
userName(io.qt.core.QUrl.ComponentFormattingOptions)
withoptions = new io.qt.core.QUrl.ComponentFormattingOptions(133169152)
. -
userName
-
fromAce
-
fromEncoded
Overloaded function for
fromEncoded(io.qt.core.QByteArray, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
. -
fromEncoded
-
fromLocalFile
-
fromPercentEncoding
-
fromStringList
Overloaded function for
fromStringList(java.util.Collection, io.qt.core.QUrl.ParsingMode)
withmode = io.qt.core.QUrl.ParsingMode.TolerantMode
. -
fromStringList
-
fromUserInput
-
fromUserInput
public static QUrl fromUserInput(String userInput, String workingDirectory, QUrl.UserInputResolutionOption... options) Overloaded function for
fromUserInput(java.lang.String, java.lang.String, io.qt.core.QUrl.UserInputResolutionOptions)
. -
fromUserInput
Overloaded function for
fromUserInput(java.lang.String, java.lang.String, io.qt.core.QUrl.UserInputResolutionOptions)
withoptions = new io.qt.core.QUrl.UserInputResolutionOptions(0)
. -
fromUserInput
public static QUrl fromUserInput(String userInput, String workingDirectory, QUrl.UserInputResolutionOptions options) -
idnWhitelist
-
setIdnWhitelist
-
toAce
-
toPercentEncoding
Overloaded function for
toPercentEncoding(java.lang.String, io.qt.core.QByteArray, io.qt.core.QByteArray)
withinclude = new io.qt.core.QByteArray()
. -
toPercentEncoding
Overloaded function for
toPercentEncoding(java.lang.String, io.qt.core.QByteArray, io.qt.core.QByteArray)
with:
exclude = new io.qt.core.QByteArray()
include = new io.qt.core.QByteArray()
-
toPercentEncoding
-
toStringList
Overloaded function for
toStringList(java.util.Collection, io.qt.core.QUrl.FormattingOptions)
withoptions = new FormattingOptions(ComponentFormattingOption.PrettyDecoded)
. -
toStringList
public static QStringList toStringList(Collection<? extends QUrl> uris, QUrl.FormattingOptions options) -
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QUrl>
-
hashCode
-
toDisplayString
-
toString
-
url
-
toEncoded
-
toStringList
public static QStringList toStringList(Collection<? extends QUrl> uris, QUrl.FormattingOption... options) -
adjusted
-
fromClassPath
Deprecated.Usenew QUrl("qrc:path")
instead. -
clone
-
new QUrl("qrc:path")
instead.