Package csw.location.models
Class HttpRegistration
- java.lang.Object
-
- csw.location.models.Registration
-
- csw.location.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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpRegistration(Connection.HttpConnection connection, int port, java.lang.String path)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract static R
apply(T1 v1, T2 v2, T3 v3)
Connection.HttpConnection
connection()
TheConnection
to register withLocationService
Location
location(java.lang.String hostname)
Create a HttpLocation that represents the live Http servicejava.lang.String
path()
int
port()
static java.lang.String
toString()
-
-
-
Constructor Detail
-
HttpRegistration
public HttpRegistration(Connection.HttpConnection connection, int port, java.lang.String path)
-
-
Method Detail
-
apply
public abstract static R apply(T1 v1, T2 v2, T3 v3)
-
toString
public static java.lang.String toString()
-
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()
-
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)
-
-