Package com.uc4.communication.requests
Class GetCPProperties
- java.lang.Object
-
- com.uc4.communication.requests.XMLRequest
-
- com.uc4.communication.requests.GetCPProperties
-
public class GetCPProperties extends XMLRequest
Returns the trace options for a Communication Process using existing XREQ
-
-
Constructor Summary
Constructors Constructor Description GetCPProperties(UC4ObjectName cpName)
Creates an instance of GetWPPropertiesGetCPProperties(java.lang.String idnr)
Creates an instance of GetWPProperties
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
Creates the XML Document for the request.UC4ObjectName
getCPName()
Returns the CP name.org.w3c.dom.Element
getCPPropertiesElement()
Returns the CP property elementorg.w3c.dom.Element
getCPTraceElement()
Returns a value of the Server trace sectionCPTraceOptions
getCPTraceOptions()
Returns a CPTraceOptions Objectjava.lang.String
getIdnr()
Returns the idnr of the CP objectint
getMaxTraceSize()
returns the max trace size parameterorg.w3c.dom.Element
getOptionsElement()
Returns the option elementprotected java.lang.String
getSrc()
Returns the request source.int
getTraceFlag(int index)
Returns the trace flag value.java.lang.String
getTraceFlagDescription(int index)
Returns a detailed description of a trace flag.int
getTraceFlagsSize()
returns the length of the trace flag arrayjava.lang.String
getTraceFlagText(int index)
Returns the caption of a trace flag.java.lang.String
getTraceType()
returns the trace typeprotected void
handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
Sub classes extract the values from the XML document and provide public getter methods.protected boolean
isAllowedInClientZero()
This method is used internally.boolean
isServerAlive()
Returns true if the Server is running or false if not.-
Methods inherited from class com.uc4.communication.requests.XMLRequest
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
-
-
-
-
Constructor Detail
-
GetCPProperties
public GetCPProperties(UC4ObjectName cpName)
Creates an instance of GetWPProperties- Parameters:
cpName
- Name of the CP HOST object
-
GetCPProperties
public GetCPProperties(java.lang.String idnr)
Creates an instance of GetWPProperties- Parameters:
idnr
- Idnr of the CP HOST object
-
-
Method Detail
-
isServerAlive
public boolean isServerAlive()
Returns true if the Server is running or false if not.- Returns:
- boolean
-
getCPName
public UC4ObjectName getCPName()
Returns the CP name.- Returns:
- UC4ObjectName
-
getIdnr
public java.lang.String getIdnr()
Returns the idnr of the CP object- Returns:
- idnr
-
getSrc
protected java.lang.String getSrc()
Description copied from class:XMLRequest
Returns the request source. This method is used internally.- Specified by:
getSrc
in classXMLRequest
- Returns:
- Source
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
Description copied from class:XMLRequest
Creates the XML Document for the request. This method is used internally.- Specified by:
createRequest
in classXMLRequest
- Parameters:
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the session
-
handleContent
protected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
Description copied from class:XMLRequest
Sub classes extract the values from the XML document and provide public getter methods.- Overrides:
handleContent
in classXMLRequest
- Parameters:
doc
- XML Documentsession
- Info about the user session
-
getTraceFlagText
public java.lang.String getTraceFlagText(int index)
Returns the caption of a trace flag.- Parameters:
index
- Index between 0 and 15- Returns:
- Text
-
getTraceFlag
public int getTraceFlag(int index)
Returns the trace flag value.- Parameters:
index
- Index between 0 and 15- Returns:
- value
-
getTraceFlagDescription
public java.lang.String getTraceFlagDescription(int index)
Returns a detailed description of a trace flag.- Parameters:
index
- Index between 0 and 15- Returns:
- Text
-
isAllowedInClientZero
protected boolean isAllowedInClientZero()
Description copied from class:XMLRequest
This method is used internally. Tests if thisXMLRequest
is allowed in client 0. The default implementation returnsfalse
, subclasses may override.- Overrides:
isAllowedInClientZero
in classXMLRequest
- Returns:
true
if this request is allowed in client 0,false
otherwise
-
getCPTraceElement
public org.w3c.dom.Element getCPTraceElement()
Returns a value of the Server trace section- Returns:
- Element
-
getOptionsElement
public org.w3c.dom.Element getOptionsElement()
Returns the option element- Returns:
- Element
-
getCPPropertiesElement
public org.w3c.dom.Element getCPPropertiesElement()
Returns the CP property element- Returns:
- Element
-
getCPTraceOptions
public CPTraceOptions getCPTraceOptions()
Returns a CPTraceOptions Object- Returns:
- CPTraceOptions
-
getTraceFlagsSize
public int getTraceFlagsSize()
returns the length of the trace flag array- Returns:
- int
-
getMaxTraceSize
public int getMaxTraceSize()
returns the max trace size parameter- Returns:
- int
-
getTraceType
public java.lang.String getTraceType()
returns the trace type- Returns:
- String
-
-