- java.lang.Object
-
- swim.uri.UriPart
-
- swim.uri.UriAuthority
-
- All Implemented Interfaces:
Comparable<UriAuthority>
,Debug
,Display
public class UriAuthority extends UriPart implements Comparable<UriAuthority>, Debug, Display
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UriAuthority(UriUser user, UriHost host, UriPort port)
-
Method Summary
-
-
-
Method Detail
-
isDefined
public final boolean isDefined()
-
user
public final UriUser user()
-
user
public UriAuthority user(UriUser user)
-
userPart
public final String userPart()
-
userPart
public UriAuthority userPart(String user)
-
username
public String username()
-
username
public UriAuthority username(String username)
-
username
public UriAuthority username(String username, String password)
-
password
public String password()
-
password
public UriAuthority password(String password)
-
host
public final UriHost host()
-
host
public UriAuthority host(UriHost host)
-
hostPart
public final String hostPart()
-
hostPart
public UriAuthority hostPart(String host)
-
hostAddress
public final String hostAddress()
-
hostName
public final String hostName()
-
hostName
public UriAuthority hostName(String address)
-
hostIPv4
public final String hostIPv4()
-
hostIPv4
public UriAuthority hostIPv4(String address)
-
hostIPv6
public final String hostIPv6()
-
hostIPv6
public UriAuthority hostIPv6(String address)
-
port
public final UriPort port()
-
port
public UriAuthority port(UriPort port)
-
portPart
public final String portPart()
-
portPart
public UriAuthority portPart(String port)
-
portNumber
public final int portNumber()
-
portNumber
public UriAuthority portNumber(int number)
-
copy
protected UriAuthority copy(UriUser user, UriHost host, UriPort port)
-
compareTo
public final int compareTo(UriAuthority that)
- Specified by:
compareTo
in interfaceComparable<UriAuthority>
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
display
public <T> Output<T> display(Output<T> output)
Description copied from interface:Display
Writes a human readable, display-formatted string representation of this object tooutput
.
-
undefined
public static UriAuthority undefined()
-
create
public static UriAuthority create(UriUser user, UriHost host, UriPort port)
-
create
public static UriAuthority create(UriHost host, UriPort port)
-
create
public static UriAuthority create(UriHost host)
-
parse
public static UriAuthority parse(String string)
-
-