Package org.yamcs.client.base
Class ServerURL
- java.lang.Object
-
- org.yamcs.client.base.ServerURL
-
public class ServerURL extends Object
Parses Yamcs Server URLs and exposes standardized string outputs, as well as access to the individual URL components.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContext()
String
getHost()
int
getPort()
boolean
isTLS()
static ServerURL
parse(String url)
void
setContext(String context)
void
setTLS(boolean tls)
String
toString()
-
-
-
Method Detail
-
getHost
public String getHost()
-
getPort
public int getPort()
-
isTLS
public boolean isTLS()
-
setTLS
public void setTLS(boolean tls)
-
getContext
public String getContext()
-
setContext
public void setContext(String context)
-
parse
public static ServerURL parse(String url)
- Throws:
IllegalArgumentException
- when the URL is not something that can be matched to a Yamcs Server URL.
-
-