public class ServerInfo extends Object implements DCEWriteable, DCEReadable
Modifier and Type | Field and Description |
---|---|
static int |
InfoLevel0 |
static int |
InfoLevel1 |
static int |
InfoLevel101 |
static int |
InfoLevel102 |
static int |
PLATFORM_NT |
static int |
PLATFORM_OS2 |
Constructor and Description |
---|
ServerInfo()
Default constructor
|
ServerInfo(int lev)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
clearStrings()
Clear the string values
|
String |
getComment()
Get the server comment
|
int |
getInformationLevel()
Get the information level
|
int |
getMajorVersion()
Get the servev major version
|
int |
getMinorVersion()
Get the server minor version
|
int |
getPlatformId()
Get the server platform id
|
String |
getServerName()
Get the server name
|
int |
getServerType()
Get the server type flags
|
void |
readObject(DCEBuffer buf)
Read the server information from the DCE/RPC buffer
|
void |
readStrings(DCEBuffer buf)
Read the strings for this object from the DCE/RPC buffer
|
void |
setComment(String comment)
Set the server comment
|
void |
setInformationLevel(int lev)
Set the information level
|
void |
setPlatformId(int id)
Set the server platform id
|
void |
setServerName(String name)
Set the server name
|
void |
setServerType(int typ)
Set the server type flags
|
void |
setVersion(int verMajor,
int verMinor)
Set the server version
|
String |
toString()
Return the server information as a string
|
void |
writeObject(DCEBuffer buf,
DCEBuffer strBuf)
Write a server information structure
|
public static final int InfoLevel0
public static final int InfoLevel1
public static final int InfoLevel101
public static final int InfoLevel102
public static final int PLATFORM_OS2
public static final int PLATFORM_NT
public ServerInfo()
public ServerInfo(int lev)
lev
- intpublic final int getInformationLevel()
public final String getServerName()
public final String getComment()
public final int getPlatformId()
public final int getMajorVersion()
public final int getMinorVersion()
public final int getServerType()
public final void setServerName(String name)
name
- Stringpublic final void setComment(String comment)
comment
- Stringpublic final void setInformationLevel(int lev)
lev
- intpublic final void setPlatformId(int id)
id
- intpublic final void setServerType(int typ)
typ
- intpublic final void setVersion(int verMajor, int verMinor)
verMajor
- intverMinor
- intprotected final void clearStrings()
public void readObject(DCEBuffer buf) throws DCEBufferException
readObject
in interface DCEReadable
buf
- DCEBufferDCEBufferException
public void readStrings(DCEBuffer buf) throws DCEBufferException
readStrings
in interface DCEReadable
buf
- DCEBufferDCEBufferException
public void writeObject(DCEBuffer buf, DCEBuffer strBuf)
writeObject
in interface DCEWriteable
buf
- DCEBufferstrBuf
- DCEBufferCopyright © 2005–2018 Alfresco Software. All rights reserved.