Package csw.location.api.models
Class HttpRegistration
- java.lang.Object
-
- csw.location.api.models.Registration
-
- csw.location.api.models.HttpRegistration
-
- All Implemented Interfaces:
LocationSerializable
,java.io.Serializable
,scala.Equals
,scala.Product
public final class HttpRegistration extends Registration implements scala.Product, java.io.Serializable
HttpRegistration holds information needed to register a Http serviceparam: port provide the port where Http service is available param: path provide the path to reach the available http service param: metadata represents additional metadata information associated with location. Defaulted to empty if not provided.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpRegistration(Connection.HttpConnection connection, int port, java.lang.String path)
HttpRegistration(Connection.HttpConnection connection, int port, java.lang.String path, Metadata metadata)
HttpRegistration(Connection.HttpConnection connection, int port, java.lang.String path, NetworkType networkType)
HttpRegistration(Connection.HttpConnection connection, int port, java.lang.String path, NetworkType networkType, Metadata metadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpRegistration
apply(Connection.HttpConnection connection, int port, java.lang.String path)
static HttpRegistration
apply(Connection.HttpConnection connection, int port, java.lang.String path, Metadata metadata)
static HttpRegistration
apply(Connection.HttpConnection connection, int port, java.lang.String path, NetworkType networkType)
Connection.HttpConnection
connection()
TheConnection
to register withLocationService
Location
location(java.lang.String hostname)
Create a HttpLocation that represents the live Http serviceMetadata
metadata()
metadata represents any additional information (metadata) associated with registrationNetworkType
networkType()
java.lang.String
path()
int
port()
-
-
-
Constructor Detail
-
HttpRegistration
public HttpRegistration(Connection.HttpConnection connection, int port, java.lang.String path, NetworkType networkType, Metadata metadata)
-
HttpRegistration
public HttpRegistration(Connection.HttpConnection connection, int port, java.lang.String path, Metadata metadata)
-
HttpRegistration
public HttpRegistration(Connection.HttpConnection connection, int port, java.lang.String path)
-
HttpRegistration
public HttpRegistration(Connection.HttpConnection connection, int port, java.lang.String path, NetworkType networkType)
-
-
Method Detail
-
apply
public static HttpRegistration apply(Connection.HttpConnection connection, int port, java.lang.String path, Metadata metadata)
-
apply
public static HttpRegistration apply(Connection.HttpConnection connection, int port, java.lang.String path, NetworkType networkType)
-
apply
public static HttpRegistration apply(Connection.HttpConnection connection, int port, java.lang.String path)
-
connection
public Connection.HttpConnection connection()
Description copied from class:Registration
TheConnection
to register withLocationService
- Specified by:
connection
in classRegistration
- Returns:
- (undocumented)
-
port
public int port()
-
path
public java.lang.String path()
-
networkType
public NetworkType networkType()
-
metadata
public Metadata metadata()
Description copied from class:Registration
metadata represents any additional information (metadata) associated with registration- Specified by:
metadata
in classRegistration
- Returns:
- (undocumented)
-
location
public Location location(java.lang.String hostname)
Create a HttpLocation that represents the live Http service- Specified by:
location
in classRegistration
- Parameters:
hostname
- provide the hostname where Http service is available- Returns:
- (undocumented)
-
-