|
WebLogic Server 6.0 Code Examples, BEA Systems, Inc. | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.HandlerBase | +--examples.xml.http.StockClient
This example works with SAXServlet included in this package to demonstrate how XML data is created, manipulated, and passed between a client and a servlet. This class accepts user input to define a stock trade transaction. XML data is generated and sent to StockServlet via a HTTP POST. The resulting XML data returned from StockServlet is parsed and displayed in the console.
Constructor Summary | |
StockClient()
Default constructor. |
Method Summary | |
void |
endDocument()
Receive notification of the end of a document. |
void |
error(org.xml.sax.SAXParseException ex)
Receive notification of a recoverable error. |
void |
fatalError(org.xml.sax.SAXParseException ex)
Receive notification of a non-recoverable error. |
static void |
main(java.lang.String[] args)
Runs this example from the command line. |
void |
startDocument()
Receive notification of the beginning of a document. |
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList attrs)
Receive notification of the beginning of an element. |
void |
warning(org.xml.sax.SAXParseException ex)
Receive notification of a warning. |
Methods inherited from class org.xml.sax.HandlerBase |
characters, endElement, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public StockClient()
Method Detail |
public void endDocument() throws org.xml.sax.SAXException
endDocument
in class org.xml.sax.HandlerBase
public void error(org.xml.sax.SAXParseException ex)
error
in class org.xml.sax.HandlerBase
public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
fatalError
in class org.xml.sax.HandlerBase
public static void main(java.lang.String[] args)
java xml.sax.StockClient t3://localhost:7001/stock BEAS
url
- URL of the servlet such as http://localhost:7001/examplesWebApp/StockServletpublic void startDocument() throws org.xml.sax.SAXException
startDocument
in class org.xml.sax.HandlerBase
public void startElement(java.lang.String name, org.xml.sax.AttributeList attrs) throws org.xml.sax.SAXException
startElement
in class org.xml.sax.HandlerBase
public void warning(org.xml.sax.SAXParseException ex)
warning
in class org.xml.sax.HandlerBase
|
Documentation is available at http://e-docs.bea.com/wls/docs60 |
|||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |