Package org.yamcs.http
Class Binding
- java.lang.Object
-
- org.yamcs.http.Binding
-
public class Binding extends Object
-
-
Constructor Summary
Constructors Constructor Description Binding(int port)Binding(InetAddress address, int port)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BindingfromConfig(YConfiguration config)InetAddressgetAddress()intgetPort()StringgetURI()Returns a URL string in the format PROTOCOL://ADDRESS or PROTOCOL://ADDRESS:PORT if the PORT is unconventional for the PROTOCOL.booleanisTLS()voidsetTLS(String tlsCert, String tlsKey)voidsetTLS(List<String> tlsCerts, String tlsKey)StringtoString()
-
-
-
Constructor Detail
-
Binding
public Binding(int port)
-
Binding
public Binding(InetAddress address, int port)
-
-
Method Detail
-
isTLS
public boolean isTLS()
-
getAddress
public InetAddress getAddress()
-
getPort
public int getPort()
-
fromConfig
public static Binding fromConfig(YConfiguration config) throws UnknownHostException
- Throws:
UnknownHostException
-
getURI
public String getURI()
Returns a URL string in the format PROTOCOL://ADDRESS or PROTOCOL://ADDRESS:PORT if the PORT is unconventional for the PROTOCOL.
-
-