public class URLProtocol
Represents URL protocol
Modifier and Type | Class and Description |
---|---|
static class |
URLProtocol.Companion |
Modifier and Type | Field and Description |
---|---|
static URLProtocol.Companion |
Companion |
Constructor and Description |
---|
URLProtocol(java.lang.String name,
int defaultPort)
Represents URL protocol
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
component1()
of protocol
|
int |
component2()
default port for protocol or
|
URLProtocol |
copy(java.lang.String name,
int defaultPort)
Represents URL protocol
|
boolean |
equals(java.lang.Object p) |
int |
getDefaultPort()
default port for protocol or
|
java.lang.String |
getName()
of protocol
|
int |
hashCode() |
java.lang.String |
toString() |
public static URLProtocol.Companion Companion
public URLProtocol(java.lang.String name, int defaultPort)
Represents URL protocol
name
- of protocol (schema)defaultPort
- default port for protocol or -1
if not knownpublic java.lang.String getName()
of protocol
(schema)
public int getDefaultPort()
default port for protocol or
-1
if not known
public java.lang.String component1()
of protocol
(schema)
public int component2()
default port for protocol or
-1
if not known
public URLProtocol copy(java.lang.String name, int defaultPort)
Represents URL protocol
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)