Uses of Class
com.facilita.fc.web.Url
-
Packages that use Url Package Description com.facilita.fc.web The eggPlant Performance Web Java API makes it easy to perform load tests against web sites and services, by providing classes and methods that simulate the behaviour of a web browser sending/receiving HTTP(s) requests to/from a web server. -
-
Uses of Url in com.facilita.fc.web
Methods in com.facilita.fc.web that return Url Modifier and Type Method Description Url
Url. appendPath(java.lang.String path)
Creates a newUrl
object using the attributes of thisUrl
, but with the specifiedpath
appended to the existing path.Url
Response. getAnchor(int n, ActionType failAction)
Gets the nth anchor in thisResponse
.Url
CachedResponse. getUrl()
Gets theUrl
that thisCachedResponse
represents a response to.Url
Request. getUrl()
Gets theUrl
that thisRequest
is targeting.Url
Response. getUrl()
Url
WebSocket. getUrl()
Gets theUrl
that this WebSocket is targeting.Url
Url. withCredentials(java.lang.String user, java.lang.String password)
Creates a newUrl
object using the attributes of thisUrl
, but with the specifieduser
andpassword
(replacing the existing credentials if present).Url
Url. withPath(java.lang.String path)
Creates a newUrl
object using the attributes of thisUrl
, but with the specifiedpath
(replacing the existing path if present).Url
Url. withPort(int port)
Creates a newUrl
object using the attributes of thisUrl
, but with the specifiedport
(replacing the existing port if present).Url
Url. withQuery(Form form)
Creates a newUrl
object using the attributes of thisUrl
, but with query data from the specifiedForm
object (replacing the existing query data if present).Url
Url. withQuery(Form form, java.lang.String unsafeCharacters)
Creates a newUrl
object using the attributes of thisUrl
, but with query data from the specifiedForm
object percent-encoded using the supplied list ofunsafeCharacters
(replacing the existing query data if present).Url
Url. withQuery(QueryData queryData)
Creates a newUrl
object using the attributes of thisUrl
, but with the specifiedQueryData
object (replacing the existing query data if present).Url
Url. withQuery(QueryData queryData, java.lang.String unsafeCharacters)
Creates a newUrl
object using the attributes of thisUrl
, but with the specifiedQueryData
object (replacing the existing query data if present).Url
Url. withQuery(java.lang.String queryText)
Creates a newUrl
object using the attributes of thisUrl
, but with the specifiedqueryText String
(replacing the existing query data if present).Url
Url. withReference(java.lang.String reference)
Creates a newUrl
object using the attributes of thisUrl
, but with the specifiedreference String
(replacing the existing reference, also known as the fragment ID, if present).Methods in com.facilita.fc.web that return types with arguments of type Url Modifier and Type Method Description java.util.List<Url>
Request. getIgnoredSubRequests()
Gets the list of sub-requests that will be ignored when fetching sub-requests from the web server.java.util.List<Url>
Request. getSubRequests()
Gets the list of sub-requests that will be fetched from the web server by this request.Methods in com.facilita.fc.web with parameters of type Url Modifier and Type Method Description void
Request. addSubRequest(Url url)
Adds aUrl
to the list of sub-requests that will be fetched from the web server by this request.Request
WebBrowser. createRequest(HttpMethod method, Url url)
Creates aRequest
object that can be used to send an HTTP request to the web server.Request
WebBrowser. createRequest(HttpMethod method, Url url, int reference)
Creates aRequest
object that can be used to send an HTTP request to the web server, specifying a unique identifier that can be used to track the request.WebSocket
WebBrowser. createWebSocket(Url url, int reference)
Creates aWebSocket
object that can be used to send/receive WebSocket messages to/from the web server.static long
Url. getCPtr(Url obj)
For internal use only.<T> T
WebBrowserScript. getSoapService(java.lang.Class<T> soapServiceInterface, Url url, com.testplant.soap.SoapVersion soapVersion)
<T> T
WebBrowserVirtualUser. getSoapService(java.lang.Class<T> soapServiceInterface, Url url, com.testplant.soap.SoapVersion soapVersion)
void
Request. ignoreSubRequest(Url url)
Specifies aUrl
that will be ignored when fetching sub-requests from the web server.void
CachedResponse. setReferer(Url url)
Sets the value of the"Referer"
HTTP header to the specifiedUrl
.void
Request. setReferer(Url url)
Sets the value of the"Referer"
HTTP header.void
WebSocket. setReferer(Url url)
Sets the value of the"Referer"
HTTP header.void
Request. setUrl(Url url)
Sets theUrl
that thisRequest
is targeting.void
WebSocket. setUrl(Url url)
Sets theUrl
that this WebSocket is targeting.Method parameters in com.facilita.fc.web with type arguments of type Url Modifier and Type Method Description void
Request. setIgnoredSubRequests(java.util.List<Url> ignoreList)
Sets the list of sub-requests that will be ignored when fetching sub-requests from the web server.void
Request. setSubRequests(java.util.List<Url> resourceList)
Sets the list of sub-requests that will be fetched from the web server by this request.Constructors in com.facilita.fc.web with parameters of type Url Constructor Description CachedResponse(Url url)
Creates aCachedResponse
object with the specifiedUrl
.Url(Url url, java.lang.String relativeUrlText, boolean checkSlash)
For internal use only.
-