org.openmdx.security.auth.servlet.simple
Class SimpleCallbackHandler

java.lang.Object
  extended by org.openmdx.security.auth.servlet.spi.AbstractHandler
      extended by org.openmdx.security.auth.servlet.spi.AbstractCallbackHandler
          extended by org.openmdx.security.auth.servlet.simple.SimpleCallbackHandler
All Implemented Interfaces:
ServletConfig, HttpCallbackHandler, HttpHandler

public class SimpleCallbackHandler
extends AbstractCallbackHandler

Simple Callback Handler


Field Summary
 
Fields inherited from class org.openmdx.security.auth.servlet.spi.AbstractCallbackHandler
LOCAL_ADDR, REMOTE_ADDR
 
Constructor Summary
SimpleCallbackHandler()
          Constructor
 
Method Summary
protected  String getFieldName(int fieldIndex)
          Construct a field name
protected  String getTitle()
          Retrieve the title.
protected  void handle(HttpServletRequest request, int index, ChoiceCallback callback)
          Handle Choice Callbacks
protected  void handle(HttpServletRequest request, int index, ConfirmationCallback callback)
          Handle Confirmation Callbacks
protected  void handle(HttpServletRequest request, int index, NameCallback callback)
          Handle Name Callbacks
protected  void handle(HttpServletRequest request, int index, PasswordCallback callback)
          Handle Password Callbacks
protected  void handle(HttpServletRequest request, int index, TextInputCallback callback)
          Handle Text Input Callbacks
protected  void handle(HttpServletRequest request, int index, TokenCallback callback)
          Handle Token Callbacks
protected  boolean handle(HttpServletRequest request, Writer html, int index, ChoiceCallback callback)
          Handle Choice Callbacks
protected  boolean handle(HttpServletRequest request, Writer html, int index, ConfirmationCallback callback)
          Handle Confirmation Callbacks
protected  boolean handle(HttpServletRequest request, Writer html, int index, NameCallback callback)
          Handle Name Callbacks
protected  boolean handle(HttpServletRequest request, Writer html, int index, PasswordCallback callback)
          Handle Password Callbacks
protected  boolean handle(HttpServletRequest request, Writer html, int index, TextInputCallback callback)
          Handle Text Input Callbacks
protected  boolean handle(HttpServletRequest request, Writer html, int index, TextOutputCallback callback)
          Handle Text output Callbacks
protected  boolean handle(HttpServletRequest request, Writer html, int index, TokenCallback callback)
          Handle Token Callbacks
protected  void init()
          A convenience method which can be overridden so that there's no need to call super.init(config).
protected  void startBody(Writer html)
          Write the BODY's start tag.
protected  void startHead(Writer html)
          Write the HEAD's start tag including its META element.
 
Methods inherited from class org.openmdx.security.auth.servlet.spi.AbstractCallbackHandler
endForm, getToken, handle, handle, handle, handle, handle, handle, handle, handle, handle, startForm
 
Methods inherited from class org.openmdx.security.auth.servlet.spi.AbstractHandler
debugDefault, destroy, endBody, endDocument, endHead, getInitParameter, getInitParameter, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getServletContext, getServletName, init, isDebug, log, log, startDocument, writeEncoded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openmdx.security.auth.servlet.cci.HttpHandler
destroy, init
 

Constructor Detail

SimpleCallbackHandler

public SimpleCallbackHandler()
Constructor

Method Detail

getFieldName

protected String getFieldName(int fieldIndex)
Construct a field name

Parameters:
fieldIndex -
Returns:
the fieldPrefix's value concatenated with the index.

getTitle

protected final String getTitle()
Retrieve the title.

Returns:
the title's value

init

protected void init()
             throws ServletException
Description copied from class: AbstractHandler
A convenience method which can be overridden so that there's no need to call super.init(config).

Instead of overriding init(ServletConfig), simply override this method and it will be called by AbstractHandler.init(ServletConfig).

Overrides:
init in class AbstractHandler
Throws:
ServletException

startHead

protected void startHead(Writer html)
                  throws IOException
Description copied from class: AbstractHandler
Write the HEAD's start tag including its META element.

Overrides:
startHead in class AbstractHandler
Throws:
IOException

startBody

protected void startBody(Writer html)
                  throws IOException
Description copied from class: AbstractHandler
Write the BODY's start tag.

Overrides:
startBody in class AbstractHandler
Throws:
IOException

handle

protected boolean handle(HttpServletRequest request,
                         Writer html,
                         int index,
                         ChoiceCallback callback)
                  throws IOException,
                         UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Choice Callbacks

Overrides:
handle in class AbstractCallbackHandler
html - write the to the HTML form
Returns:
true if a response has been added
Throws:
IOException
UnsupportedCallbackException

handle

protected boolean handle(HttpServletRequest request,
                         Writer html,
                         int index,
                         ConfirmationCallback callback)
                  throws IOException,
                         UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Confirmation Callbacks

Overrides:
handle in class AbstractCallbackHandler
html - write the to the HTML form
Returns:
true if a response has been added
Throws:
IOException
UnsupportedCallbackException

handle

protected boolean handle(HttpServletRequest request,
                         Writer html,
                         int index,
                         NameCallback callback)
                  throws IOException,
                         UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Name Callbacks

Overrides:
handle in class AbstractCallbackHandler
html - write the to the HTML form
Returns:
true if a response has been added
Throws:
IOException
UnsupportedCallbackException

handle

protected boolean handle(HttpServletRequest request,
                         Writer html,
                         int index,
                         PasswordCallback callback)
                  throws IOException,
                         UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Password Callbacks

Overrides:
handle in class AbstractCallbackHandler
html - write the to the HTML form
Returns:
true if a response has been added
Throws:
IOException
UnsupportedCallbackException

handle

protected boolean handle(HttpServletRequest request,
                         Writer html,
                         int index,
                         TextInputCallback callback)
                  throws IOException,
                         UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Text Input Callbacks

Overrides:
handle in class AbstractCallbackHandler
html - write the to the HTML form
Returns:
true if a response has been added
Throws:
IOException
UnsupportedCallbackException

handle

protected boolean handle(HttpServletRequest request,
                         Writer html,
                         int index,
                         TextOutputCallback callback)
                  throws IOException,
                         UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Text output Callbacks

Overrides:
handle in class AbstractCallbackHandler
html - write the to the HTML form
Returns:
true if a response has been added
Throws:
IOException
UnsupportedCallbackException

handle

protected boolean handle(HttpServletRequest request,
                         Writer html,
                         int index,
                         TokenCallback callback)
                  throws IOException,
                         UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Token Callbacks

Overrides:
handle in class AbstractCallbackHandler
html - write the to the HTML form
Returns:
true if a response has been added
Throws:
IOException
UnsupportedCallbackException

handle

protected void handle(HttpServletRequest request,
                      int index,
                      ChoiceCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Choice Callbacks

Overrides:
handle in class AbstractCallbackHandler
Throws:
IOException
UnsupportedCallbackException

handle

protected void handle(HttpServletRequest request,
                      int index,
                      ConfirmationCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Confirmation Callbacks

Overrides:
handle in class AbstractCallbackHandler
Throws:
IOException
UnsupportedCallbackException

handle

protected void handle(HttpServletRequest request,
                      int index,
                      NameCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Name Callbacks

Overrides:
handle in class AbstractCallbackHandler
Throws:
IOException
UnsupportedCallbackException

handle

protected void handle(HttpServletRequest request,
                      int index,
                      PasswordCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Password Callbacks

Overrides:
handle in class AbstractCallbackHandler
Throws:
IOException
UnsupportedCallbackException

handle

protected void handle(HttpServletRequest request,
                      int index,
                      TextInputCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Text Input Callbacks

Overrides:
handle in class AbstractCallbackHandler
Throws:
IOException
UnsupportedCallbackException

handle

protected void handle(HttpServletRequest request,
                      int index,
                      TokenCallback callback)
               throws IOException,
                      UnsupportedCallbackException
Description copied from class: AbstractCallbackHandler
Handle Token Callbacks

Overrides:
handle in class AbstractCallbackHandler
Throws:
IOException
UnsupportedCallbackException


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.