com.gentics.contentnode.rest.model.response
Class VersionResponse

java.lang.Object
  extended by com.gentics.contentnode.rest.model.response.GenericResponse
      extended by com.gentics.contentnode.rest.model.response.VersionResponse

public class VersionResponse
extends GenericResponse

Response for a request asking for the version of the REST API on the server.

Author:
msc

Constructor Summary
VersionResponse()
          Empty constructor needed by JAXB
VersionResponse(Message message, ResponseInfo responseInfo, String version)
          Creates a VersionResponse with the provided single message, the ResponseInfo and the version as String
 
Method Summary
 String getVersion()
           
 void setVersion(String version)
           
 
Methods inherited from class com.gentics.contentnode.rest.model.response.GenericResponse
addMessage, getMessages, getResponseInfo, setMessages, setResponseInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionResponse

public VersionResponse()
Empty constructor needed by JAXB


VersionResponse

public VersionResponse(Message message,
                       ResponseInfo responseInfo,
                       String version)
Creates a VersionResponse with the provided single message, the ResponseInfo and the version as String

Parameters:
message - The messages that should be displayed to the user
response - ResponseInfo with the status of the response
Method Detail

getVersion

public String getVersion()
Returns:
The current server version

setVersion

public void setVersion(String version)
Parameters:
version - The current server version


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.