com.ibm.dse.cs.xml
Class XmlPresentationHandler
java.lang.Object
|
+--com.ibm.dse.clientserver.DSEPresentationHandler
|
+--com.ibm.dse.cs.java.JavaPresentationHandler
|
+--com.ibm.dse.cs.xml.XmlPresentationHandler
- public class XmlPresentationHandler
- extends JavaPresentationHandler
The XmlPresentationHandler extends the JavaPresentationHandler to provide the specific behaviour for XML Clients
Return an XML message to the client
Method Summary |
protected org.w3c.dom.Document |
createDocument(ChannelContext channelContext)
Create the initial document using the XML4Java Parser document
Extend this mehtod if a different parser is used |
protected void |
printNode(java.io.PrintWriter pw,
org.w3c.dom.Node node)
Print each node to the PrintWriter object |
void |
processException(ChannelContext channelContext,
java.lang.Exception exception)
Process the response for the exceptions that occur for xml clients |
void |
processReply(ChannelContext channelContext,
ServerOperation aServerOperation)
Process the reply for clients supporting xml messages |
void |
processSessionReply(ChannelContext channelContext)
Process the session reply for clients supporting xml messages |
protected void |
send(ChannelContext channelContext,
org.w3c.dom.Document doc,
java.lang.String dtdName)
Format and send the document to the client device
Currently supports XML version 1.0 |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
XmlPresentationHandler
public XmlPresentationHandler()
- XMLPresentationHandler constructor.
createDocument
protected org.w3c.dom.Document createDocument(ChannelContext channelContext)
throws java.lang.Exception
- Create the initial document using the XML4Java Parser document
Extend this mehtod if a different parser is used
- Parameters:
out
- java.io.OutputStream
printNode
protected void printNode(java.io.PrintWriter pw,
org.w3c.dom.Node node)
- Print each node to the PrintWriter object
- Parameters:
pw
- java.io.PrintWriternode
- org.w3c.dom.Node
processException
public void processException(ChannelContext channelContext,
java.lang.Exception exception)
- Process the response for the exceptions that occur for xml clients
- Overrides:
- processException in class JavaPresentationHandler
- Parameters:
channelContext
- com.ibm.dse.clientserver.ChannelContextexception
- Exception
processReply
public void processReply(ChannelContext channelContext,
ServerOperation aServerOperation)
- Process the reply for clients supporting xml messages
- Overrides:
- processReply in class JavaPresentationHandler
- Parameters:
channelContext
- com.ibm.dse.clientserver.ChannelContextaServerOperation
- com.ibm.dse.base.ServerOperation
processSessionReply
public void processSessionReply(ChannelContext channelContext)
- Process the session reply for clients supporting xml messages
- Overrides:
- processSessionReply in class JavaPresentationHandler
- Parameters:
channelContext
- com.ibm.dse.clientserver.ChannelContext
send
protected void send(ChannelContext channelContext,
org.w3c.dom.Document doc,
java.lang.String dtdName)
throws java.lang.Exception
- Format and send the document to the client device
Currently supports XML version 1.0
- Parameters:
doc
- org.w3c.dom.Documentout
- java.io.OutputStream