nu.xom.samples
Class FibonacciXOMSOAPServlet
java.lang.Object
HttpServlet
nu.xom.samples.FibonacciXOMSOAPServlet
public class FibonacciXOMSOAPServlet
- extends HttpServlet
Demonstrates a servlet that receives and
responds to SOAP requests.
- Version:
- 1.0
- Author:
- Elliotte Rusty Harold
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MALFORMED_REQUEST_DOCUMENT
public static final java.lang.String MALFORMED_REQUEST_DOCUMENT
- See Also:
- Constant Field Values
INVALID_REQUEST_DOCUMENT
public static final java.lang.String INVALID_REQUEST_DOCUMENT
- See Also:
- Constant Field Values
INDEX_MISSING
public static final java.lang.String INDEX_MISSING
- See Also:
- Constant Field Values
NON_POSITIVE_INDEX
public static final java.lang.String NON_POSITIVE_INDEX
- See Also:
- Constant Field Values
BAD_INTEGER_FORMAT
public static final java.lang.String BAD_INTEGER_FORMAT
- See Also:
- Constant Field Values
UNEXPECTED_PROBLEM
public static final java.lang.String UNEXPECTED_PROBLEM
- See Also:
- Constant Field Values
FibonacciXOMSOAPServlet
public FibonacciXOMSOAPServlet()
init
public void init()
throws ServletException
- Throws:
ServletException
doPost
public void doPost(HttpServletRequest servletRequest,
HttpServletResponse servletResponse)
throws ServletException,
java.io.IOException
- Throws:
ServletException
java.io.IOException
makeResponseDocument
public nu.xom.Document makeResponseDocument(java.math.BigInteger result)
makeFaultDocument
public nu.xom.Document makeFaultDocument(java.lang.String code,
java.lang.String message)
calculateFibonacci
public static java.math.BigInteger calculateFibonacci(int generations)
throws java.lang.IndexOutOfBoundsException
- Throws:
java.lang.IndexOutOfBoundsException
Copyright 2002-2005 Elliotte Rusty Harold
elharo@metalab.unc.edu