Package com.pnfsoftware.jeb.client.mcp
Interface IJebMcpServer
public interface IJebMcpServer
Basic definition of a JEB MCP server instance.
-
Method Summary
Modifier and TypeMethodDescriptionGet the HTTP endpoint path exposed by the server.Get the hostname or bind address used by the server.getName()Get the server name.intgetPort()Get the listening port used by the server.Get the server version.voidserve()Serve requests until the server is stopped.
-
Method Details
-
getName
String getName()Get the server name.- Returns:
- server name
-
getVersion
String getVersion()Get the server version.- Returns:
- server version
-
getHostname
String getHostname()Get the hostname or bind address used by the server.- Returns:
- hostname
-
getPort
int getPort()Get the listening port used by the server.- Returns:
- port number
-
getEndpoint
String getEndpoint()Get the HTTP endpoint path exposed by the server.- Returns:
- endpoint path
-
serve
void serve()Serve requests until the server is stopped.
-