Package csw.location.api.models
Class HttpRegistration
java.lang.Object
csw.location.api.models.Registration
csw.location.api.models.HttpRegistration
- All Implemented Interfaces:
LocationSerializable
,Serializable
,scala.Equals
,scala.Product
HttpRegistration holds information needed to register a Http service
param: 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:
-
Constructor Summary
ConstructorDescriptionHttpRegistration
(Connection.HttpConnection connection, int port, String path) HttpRegistration
(Connection.HttpConnection connection, int port, String path, Metadata metadata) HttpRegistration
(Connection.HttpConnection connection, int port, String path, NetworkType networkType) HttpRegistration
(Connection.HttpConnection connection, int port, String path, NetworkType networkType, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpRegistration
apply
(Connection.HttpConnection connection, int port, String path) static HttpRegistration
apply
(Connection.HttpConnection connection, int port, String path, Metadata metadata) static HttpRegistration
apply
(Connection.HttpConnection connection, int port, String path, NetworkType networkType) TheConnection
to register withLocationService
Create a HttpLocation that represents the live Http servicemetadata()
metadata represents any additional information (metadata) associated with registrationpath()
int
port()
withCswVersion
(String version) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
HttpRegistration
public HttpRegistration(Connection.HttpConnection connection, int port, String path, NetworkType networkType, Metadata metadata) -
HttpRegistration
public HttpRegistration(Connection.HttpConnection connection, int port, String path, Metadata metadata) -
HttpRegistration
-
HttpRegistration
public HttpRegistration(Connection.HttpConnection connection, int port, String path, NetworkType networkType)
-
-
Method Details
-
apply
public static HttpRegistration apply(Connection.HttpConnection connection, int port, String path, Metadata metadata) -
apply
public static HttpRegistration apply(Connection.HttpConnection connection, int port, String path, NetworkType networkType) -
apply
-
connection
Description copied from class:Registration
TheConnection
to register withLocationService
- Specified by:
connection
in classRegistration
- Returns:
- (undocumented)
-
port
public int port() -
path
-
networkType
-
metadata
Description copied from class:Registration
metadata represents any additional information (metadata) associated with registration- Specified by:
metadata
in classRegistration
- Returns:
- (undocumented)
-
location
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)
-
withCswVersion
- Specified by:
withCswVersion
in classRegistration
-