Java com.squareup.okhttp HttpUrl fields, constructors, methods, implement or subclass

Example usage for Java com.squareup.okhttp HttpUrl fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.squareup.okhttp HttpUrl.

The text is from its open source code.

Field

Stringscheme
Either "http" or "https".
Stringhost
Canonical hostname.
intport
Either 80, 443 or a user-specified port.
ListpathSegments
A list of canonical path segments.
Stringurl
Canonical URL.

Method

intdefaultPort(String scheme)
Returns 80 if scheme.equals("http") , 443 if scheme.equals("https") and -1 otherwise.
StringencodedFragment()
StringencodedPath()
Returns the entire path of this URL, encoded for use in HTTP resource resolution.
ListencodedPathSegments()
StringencodedQuery()
Returns the query of this URL, encoded for use in HTTP resource resolution.
HttpUrlget(URL url)
Returns an HttpUrl for url if its protocol is http or https , or null if it has any other protocol.
HttpUrlget(URI uri)
booleanisHttps()
BuildernewBuilder()
HttpUrlparse(String url)
Returns a new HttpUrl representing url if it is a well-formed HTTP or HTTPS URL, or null if it isn't.
Stringquery()
StringqueryParameterName(int index)
StringqueryParameterValue(int index)
intquerySize()
HttpUrlresolve(String link)
Returns the URL that would be retrieved by following link from this URL.
StringtoString()