web.URL methods

Note: For method usage example, click the method name. You will be referred to the examples page.

Method Name

Argument

Returned Value

Description

getURL

 

String

Converts object to String

setURL

String

 

Parses and sets all the fields from String representation

getHost

 

String

Returns the requested host

setHost

String

 

Sets the host

getPort

 

String

Returns the TCP port number

setPort

String

 

Sets the TCP port number

getSchema

 

String

Returns the scheme (http/https)

setSchema

String

 

Specifies the scheme (http/https)

getLogin

 

String

Returns the login

setLogin

String

 

Sets the login

getPassword

 

String

Returns the password

setPassword

String

 

Sets the password

getPath

 

String

Returns the path to the resource

setPath

String

 

Specifies the path to the resource

getQuery

 

String

Returns parameters

setQuery

String

 

Sets parameters

getFragmentId

 

String

Returns the fragment id

setFragmentId

String

 

Sets the fragment id

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.