net.sf.ofx4j.server
Class OFXServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.sf.ofx4j.server.OFXServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class OFXServlet
extends javax.servlet.http.HttpServlet

Basic servlet that processes an OFX request.

Author:
Ryan Heaton
See Also:
Serialized Form

Constructor Summary
OFXServlet()
           
 
Method Summary
protected  OFXWriter createOFXWriter(java.io.OutputStream out)
          Create the OFX writer.
protected  AggregateUnmarshaller<RequestEnvelope> createUnmarshaller()
          Create the aggregate unmarshaller.
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 OFXServer getServer()
          Get the server instance.
 void init()
           
 boolean isOFXVersion2()
          Whether this servlet is OFX version 2.
protected  OFXServer loadOFXServer()
          Load the OFX server instance that is to be used for this servlet.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OFXServlet

public OFXServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

createOFXWriter

protected OFXWriter createOFXWriter(java.io.OutputStream out)
Create the OFX writer.

Parameters:
out - The output stream.
Returns:
The writer.

createUnmarshaller

protected AggregateUnmarshaller<RequestEnvelope> createUnmarshaller()
Create the aggregate unmarshaller.

Returns:
The aggregate unmarshaller.

loadOFXServer

protected OFXServer loadOFXServer()
                           throws javax.servlet.ServletException
Load the OFX server instance that is to be used for this servlet.

Returns:
the OFX server.
Throws:
javax.servlet.ServletException

getServer

public OFXServer getServer()
Get the server instance.

Returns:
The server instance.

isOFXVersion2

public boolean isOFXVersion2()
Whether this servlet is OFX version 2.

Returns:
Whether this servlet is OFX version 2.


Copyright © 2008. All Rights Reserved.