org.kde.koala

Class URLArgs

public class URLArgs extends Object implements QtSupport

URLArgs is a set of arguments bundled into a structure, to allow specifying how a URL should be opened by openURL(). In other words, this is like arguments to openURL(), but without have to change the signature of openURL() (since openURL is a generic KParts method). The parts (with a browser extension) who care about urlargs will use those arguments, others will ignore them. This can also be used the other way round, when a part asks for a URL to be opened (with openURLRequest or createNewWindow).

UNKNOWN: URLArgs is a set of arguments bundled into a structure, to allow specifying how a URL should be opened by openURL().

Constructor Summary
protected URLArgs(Class dummy)
URLArgs()
URLArgs(URLArgs args)
URLArgs(boolean reload, int xOffset, int yOffset, String serviceType)
URLArgs(boolean reload, int xOffset, int yOffset)
Method Summary
StringcontentType()
KHTML-specific field, header defining the type of the POST data.
booleandoPost()
KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
booleanforcesNewWindow()
Whether the URL specifies to be opened in a new window
booleanlockHistory()
booleannewTab()
booleanredirectedRequest()
voidsetContentType(String contentType)
KHTML-specific field, header defining the type of the POST data.
voidsetDoPost(boolean enable)
KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
voidsetForcesNewWindow(boolean forcesNewWindow)
Set whether the URL specifies to be opened in a new window
voidsetLockHistory(boolean lock)
Whether to lock the history when opening the next URL.
voidsetNewTab(boolean newTab)
Whether the URL should be opened in a new tab instead in a new window.
voidsetRedirectedRequest(boolean redirected)
Set the redirect flag to indicate URL is a result of either a META redirect or HTTP redirect.

Constructor Detail

URLArgs

protected URLArgs(Class dummy)

URLArgs

public URLArgs()

URLArgs

public URLArgs(URLArgs args)

URLArgs

public URLArgs(boolean reload, int xOffset, int yOffset, String serviceType)

URLArgs

public URLArgs(boolean reload, int xOffset, int yOffset)

Method Detail

contentType

public String contentType()
KHTML-specific field, header defining the type of the POST data.

UNKNOWN: KHTML-specific field, header defining the type of the POST data.

doPost

public boolean doPost()
KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.

UNKNOWN: KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.

forcesNewWindow

public boolean forcesNewWindow()
Whether the URL specifies to be opened in a new window

UNKNOWN: Whether the URL specifies to be opened in a new window

lockHistory

public boolean lockHistory()

newTab

public boolean newTab()

redirectedRequest

public boolean redirectedRequest()

Returns: true if the request was a result of a META refresh/redirect request or HTTP redirect.

UNKNOWN:

setContentType

public void setContentType(String contentType)
KHTML-specific field, header defining the type of the POST data.

UNKNOWN: KHTML-specific field, header defining the type of the POST data.

setDoPost

public void setDoPost(boolean enable)
KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.

UNKNOWN: KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.

setForcesNewWindow

public void setForcesNewWindow(boolean forcesNewWindow)
Set whether the URL specifies to be opened in a new window

UNKNOWN: Set whether the URL specifies to be opened in a new window

setLockHistory

public void setLockHistory(boolean lock)
Whether to lock the history when opening the next URL. This is used during e.g. a redirection, to avoid a new entry in the history.

UNKNOWN: Whether to lock the history when opening the next URL.

setNewTab

public void setNewTab(boolean newTab)
Whether the URL should be opened in a new tab instead in a new window.

UNKNOWN: Whether the URL should be opened in a new tab instead in a new window.

setRedirectedRequest

public void setRedirectedRequest(boolean redirected)
Set the redirect flag to indicate URL is a result of either a META redirect or HTTP redirect.

Parameters: redirected @short Set the redirect flag to indicate URL is a result of either a META redirect or HTTP redirect.