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 Binding
fromConfig(YConfiguration config)
InetAddress
getAddress()
int
getPort()
String
getURI()
Returns a URL string in the format PROTOCOL://ADDRESS or PROTOCOL://ADDRESS:PORT if the PORT is unconventional for the PROTOCOL.boolean
isTLS()
void
setTLS(String tlsCert, String tlsKey)
void
setTLS(List<String> tlsCerts, String tlsKey)
String
toString()
-
-
-
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.
-
-