public class ICEInput extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_TAGNAME |
static String |
PAYLOAD_TAGNAME |
static String |
USERAGENT_TAGNAME |
| Constructor and Description |
|---|
ICEInput(InputStream is,
ICEOutput output)
Creates a new instance for processing an ICE payload contained in the
specified input stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Receives notification of character data.
|
void |
endElement(String uri,
String localName,
String qName)
Receives notifications of the end of elements in the ICE payload
(XML document).
|
void |
error(SAXParseException e)
Receives notification of a recoverable parser error.
|
void |
fatalError(SAXParseException e)
Receives notification of a fatal XML parsing error.
|
void |
handle()
Handles the incoming ICE payload using a SAX parser.
|
boolean |
isUnsolicitedPending()
Checks if there are unsolicited requests or responses pending.
|
void |
processingInstruction(String target,
String data)
Receives notification of a processing instruction.
|
InputSource |
resolveEntity(String publicID,
String systemID)
Resolves an external entity.
|
void |
setComRequestHandler(IICEComRequestHandler handler)
Sets a new handler for processing all request events common to syndicators
and subscribers.
|
void |
setExtensionRequestHandler(IICEExtensionRequestHandler handler)
Sets a new handler for processing all request events corresponding to the
CM specific extensions to ICE.
|
void |
setPayloadHandler(IICEPayloadHandler handler)
Sets a new handler for processing all payload related events.
|
void |
setResponseHandler(IICEResponseHandler handler)
Sets a new handler for processing all response events.
|
void |
setSubRequestHandler(IICESubRequestHandler handler)
Sets a new handler for processing all request events from a subscriber.
|
void |
setSynRequestHandler(IICESynRequestHandler handler)
Sets a new handler for processing all request events from a syndicator.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Receives notifications of the beginnings of elements in the ICE payload
(XML document).
|
void |
warning(SAXParseException e)
Receives notification of a parser warning.
|
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDeclpublic static final String PAYLOAD_TAGNAME
public static final String HEADER_TAGNAME
public static final String USERAGENT_TAGNAME
public ICEInput(InputStream is, ICEOutput output)
Default handlers will be used to process the ICE payload. Special handlers must be registered with the appropriate methods of this class.
is - an input stream containing the ICE payloadoutput - the output receiving the responsesDefaultICEComRequestHandler,
DefaultICESynRequestHandler,
DefaultICESubRequestHandler,
DefaultICEResponseHandler,
DefaultICEExtensionRequestHandler,
DefaultICEPayloadHandlerpublic void setResponseHandler(IICEResponseHandler handler)
null is provided, a default handler will be used instead.handler - the new handler (may be null)IICEResponseHandler,
DefaultICEResponseHandlerpublic void setComRequestHandler(IICEComRequestHandler handler)
null is provided, a default handler will be used instead.handler - the new handler (may be null)IICEComRequestHandler,
DefaultICEComRequestHandlerpublic void setSynRequestHandler(IICESynRequestHandler handler)
null is provided, a default handler will be used instead.handler - the new handler (may be null)IICESynRequestHandler,
DefaultICESynRequestHandlerpublic void setSubRequestHandler(IICESubRequestHandler handler)
null is provided, a default handler will be used instead.handler - the new handler (may be null)IICESubRequestHandler,
DefaultICESubRequestHandlerpublic void setExtensionRequestHandler(IICEExtensionRequestHandler handler)
null is provided, a default handler will be used instead.handler - the new handler (may be null)IICEExtensionRequestHandler,
DefaultICEExtensionRequestHandlerpublic void setPayloadHandler(IICEPayloadHandler handler)
null is provided, a default handler will be used instead.handler - the new handler (may be null)IICEPayloadHandler,
DefaultICEPayloadHandlerpublic boolean isUnsolicitedPending()
true if there are unsolicited requests or responses pending
false otherwisepublic void handle()
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandleruri - the namespace URI, or the empty string if the element
has no Namespace URI or if Namespace processing is
not being performedlocalName - the local name (without prefix), or the empty string
if namespace processing is not being performedqName - the qualified name (with prefix), or the empty string
if qualified names are not availableattributes - the attributes attached to the element or an empty
Attribute object, if there are no attributesSAXException - on error (might wrap another exception)public void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandleruri - the namespace URI, or the empty string if the element
has no Namespace URI or if Namespace processing is
not being performedlocalName - the local name (without prefix), or the empty string
if namespace processing is not being performedqName - the qualified name (with prefix), or the empty string
if qualified names are not availableSAXException - on error (might wrap another exception)public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerch - the characters from the XML document.start - the start position in the array.length - the number of characters to read from the array.SAXException - on error (might wrap another exception)public void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class org.xml.sax.helpers.DefaultHandlertarget - the processing instruction targetdata - the processing instruction data,
or null if none is suppliedSAXException - any SAX exception, possibly wrapping another exceptionContentHandler.processingInstruction(java.lang.String, java.lang.String)public InputSource resolveEntity(String publicID, String systemID) throws SAXException
systemId ends with "ICE1_1.dtd",
the ICE 1.1 DTD is read as resource stream from the jar file, so we do not
have to download it every time from the net.resolveEntity in interface EntityResolverresolveEntity in class org.xml.sax.helpers.DefaultHandlerpublicID - the public identifer, or null if none is availablesystemID - the system identifier provided in the XML documentnull to require the default behaviourSAXException - any SAX exception, possibly wrapping another exceptionEntityResolver.resolveEntity(java.lang.String, java.lang.String)public void warning(SAXParseException e) throws SAXException
warning in interface ErrorHandlerwarning in class org.xml.sax.helpers.DefaultHandlere - the warning information encoded as an exceptionSAXException - any SAX exception, possibly wrapping another exceptionErrorHandler.warning(org.xml.sax.SAXParseException),
SAXParseExceptionpublic void error(SAXParseException e) throws SAXException
error in interface ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlere - the warning information encoded as an exceptionSAXException - any SAX exception, possibly wrapping another exceptionErrorHandler.error(org.xml.sax.SAXParseException),
SAXParseExceptionpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerfatalError in class org.xml.sax.helpers.DefaultHandlere - the error information encoded as an exceptionSAXException - any SAX exception, possibly wrapping another exceptionErrorHandler.fatalError(org.xml.sax.SAXParseException),
SAXParseException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice