abstract class AbstractServiceNowIntegration extends java.lang.Object implements ServiceNowIntegration
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CONFIG_FILE |
protected java.util.Properties |
configProp |
(package private) static java.lang.String |
DEFAULT_XSL_PATH |
protected java.util.List<ExternalObjectInfo> |
externalObjList |
protected java.lang.String |
integratedXML |
(package private) static java.util.logging.Logger |
logger |
protected java.lang.String |
serviceNowHost |
private ServiceNowSoapClient |
soapClient |
protected ServiceContext |
svcContext |
protected java.lang.String |
xslPath |
Default_ContentType, JSON_ContentType
Constructor and Description |
---|
AbstractServiceNowIntegration(ServiceContext context) |
Modifier and Type | Method and Description |
---|---|
protected ServiceNowSoapClient |
createSOAPClient() |
protected abstract void |
execute() |
protected void |
faultProcess(java.lang.String statusCode) |
protected void |
faultProcess(java.lang.String custId,
java.lang.String hostIp,
java.lang.String hostName,
java.lang.String statusCode) |
protected java.lang.String |
getElementValue(java.lang.String sourceXml,
java.lang.String elementName) |
private java.lang.String |
getHost(java.lang.String url) |
protected java.lang.String |
getIncidentFieldName() |
protected java.lang.String |
getIntegratedXML() |
protected ServiceNowSoapClient |
getSoapClient() |
protected java.lang.String |
getXslPath() |
void |
integrating() |
protected void |
loadConfigPropties() |
protected java.lang.String |
parseSoapFault(java.lang.String soapResult) |
protected java.lang.String |
parseSoapResultSysId(java.lang.String soapResult) |
static final java.util.logging.Logger logger
static final java.lang.String DEFAULT_XSL_PATH
private static final java.lang.String CONFIG_FILE
protected java.lang.String integratedXML
protected ServiceContext svcContext
protected java.lang.String xslPath
private ServiceNowSoapClient soapClient
protected java.util.List<ExternalObjectInfo> externalObjList
protected java.lang.String serviceNowHost
protected java.util.Properties configProp
AbstractServiceNowIntegration(ServiceContext context)
public void integrating() throws java.lang.Exception
integrating
in interface ServiceNowIntegration
java.lang.Exception
protected void loadConfigPropties()
protected java.lang.String getIntegratedXML()
protected java.lang.String getXslPath()
private java.lang.String getHost(java.lang.String url)
protected java.lang.String parseSoapResultSysId(java.lang.String soapResult) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
soapResult
- org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
protected void faultProcess(java.lang.String statusCode)
protected void faultProcess(java.lang.String custId, java.lang.String hostIp, java.lang.String hostName, java.lang.String statusCode)
protected java.lang.String parseSoapFault(java.lang.String soapResult)
soapResult
- protected java.lang.String getElementValue(java.lang.String sourceXml, java.lang.String elementName) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
sourceXml
- elementName
- javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
protected ServiceNowSoapClient getSoapClient()
protected ServiceNowSoapClient createSOAPClient()
protected abstract void execute() throws java.lang.Exception
java.lang.Exception
protected java.lang.String getIncidentFieldName()