@InterfaceAudience.Private public class VersionModel extends Object implements Serializable, ProtobufMessageHandler
Modifier and Type | Field and Description |
---|---|
private String |
jerseyVersion |
private String |
jvmVersion |
private String |
osVersion |
private String |
restVersion |
private static long |
serialVersionUID |
private String |
serverVersion |
Constructor and Description |
---|
VersionModel()
Default constructor.
|
VersionModel(javax.servlet.ServletContext context)
Constructor
|
Modifier and Type | Method and Description |
---|---|
byte[] |
createProtobufOutput() |
String |
getJerseyVersion() |
String |
getJVMVersion() |
ProtobufMessageHandler |
getObjectFromMessage(byte[] message)
Initialize the model from a protobuf representation.
|
String |
getOSVersion() |
String |
getRESTVersion() |
String |
getServerVersion() |
void |
setJerseyVersion(String version) |
void |
setJVMVersion(String version) |
void |
setOSVersion(String version) |
void |
setRESTVersion(String version) |
void |
setServerVersion(String version) |
String |
toString() |
private static final long serialVersionUID
private String restVersion
private String jvmVersion
private String serverVersion
private String jerseyVersion
public VersionModel()
public VersionModel(javax.servlet.ServletContext context)
context
- the servlet contextpublic String getRESTVersion()
public String getJVMVersion()
public String getOSVersion()
public String getServerVersion()
public String getJerseyVersion()
public void setRESTVersion(String version)
version
- the REST gateway version stringpublic void setOSVersion(String version)
version
- the OS version stringpublic void setJVMVersion(String version)
version
- the JVM version stringpublic void setServerVersion(String version)
version
- the servlet container version stringpublic void setJerseyVersion(String version)
version
- the Jersey framework version stringpublic byte[] createProtobufOutput()
createProtobufOutput
in interface ProtobufMessageHandler
public ProtobufMessageHandler getObjectFromMessage(byte[] message) throws IOException
ProtobufMessageHandler
getObjectFromMessage
in interface ProtobufMessageHandler
message
- the raw bytes of the protobuf messageIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.