|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.centrasite.api.diagnostic.DiagnosticContext
public class DiagnosticContext
DiagnosticContext class generates the diagnostics context object, wherein the context object is used in the sendDiagnostics call to replace an email template token.
Constructor Summary | |
---|---|
DiagnosticContext(CLLException cllException,
com.centrasite.jaxr.CentraSiteConnection connection,
java.util.Properties properties)
|
|
DiagnosticContext(CLLException cllException,
com.centrasite.jaxr.CentraSiteConnection connection,
javax.xml.registry.infomodel.RegistryObject regObject,
java.util.Properties properties)
|
Method Summary | |
---|---|
java.lang.String |
getAttachment()
Returns the attachment of diagnostics context. |
com.centrasite.jaxr.CentraSiteConnection |
getConnection()
Returns the logged in connection object. |
java.util.HashMap<java.lang.String,java.lang.Object> |
getContext()
Returns the diagnostics context. |
static java.lang.String |
getStackTrace(java.lang.Throwable throwable)
|
void |
setAttachment(java.lang.String file)
Sets attachment for each diagnostics context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiagnosticContext(CLLException cllException, com.centrasite.jaxr.CentraSiteConnection connection, java.util.Properties properties) throws CLLException
cllException
- Mandatory. Email template tokens: ${error.id}, ${error.message},
${error.action}, ${error.explanation}, ${error.stacktrace}connection
- Logged in JAXR connection / Guest user connection. Email template tokens: ${system.user.name}, ${system.repository.url},
"${user.locale}.properties
- User-defined email template tokens for replacing the default diagnostics email template's token.
CLLException
public DiagnosticContext(CLLException cllException, com.centrasite.jaxr.CentraSiteConnection connection, javax.xml.registry.infomodel.RegistryObject regObject, java.util.Properties properties) throws CLLException
cllException
- Mandatory. Email template tokens: ${error.id}, ${error.message},
${error.action}, ${error.explanation}, ${error.stacktrace}connection
- Logged in JAXR connection / Guest user connection. Email template tokens: ${system.user.name}, ${system.repository.url},
"${user.locale}.regObject
- Email template tokens:
${entity.name}, ${entity.description}, ${entity.owner},
${entity.organization}, ${entity.state}, ${entity.type},
${entity.version}, ${entity.XML}, ${entity.URL}properties
- User-defined email template tokens for replacing the default diagnostics email template's token.
CLLException
Method Detail |
---|
public java.util.HashMap<java.lang.String,java.lang.Object> getContext()
public java.lang.String getAttachment()
public void setAttachment(java.lang.String file)
file
- public com.centrasite.jaxr.CentraSiteConnection getConnection()
public static java.lang.String getStackTrace(java.lang.Throwable throwable)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |