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 StringgetContext()StringgetHost()intgetPort()booleanisTLS()static ServerURLparse(String url)voidsetContext(String context)voidsetTLS(boolean tls)StringtoString()
-
-
-
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.
-
-