public void substituteHeader(int state,String header) throws AuthLoginException {
  if (debug.messageEnabled()) {
    debug.message("substituteHeader : state=" + state + ", header="+ header);
  }
  if (state > stateLength) {
    throw new AuthLoginException(bundleName,"invalidState",new Object[]{new Integer(state)});
  }
  Callback[] ext=getCallback(state);
  if (ext.length <= 0) {
    throw new AuthLoginException(bundleName,"invalidCallbackIndex",null);
  }
  if ((header != null) && (header.length() != 0)) {
    PagePropertiesCallback pc=(PagePropertiesCallback)((Callback[])internal.get(state - 1))[0];
    pc.setHeader(header);
  }
}

public void substituteHeader ( int state , String header ) throws AuthLoginException { if ( debug . messageEnabled ( ) ) { debug . message ( "substituteHeader : state=" + state + ", header=" + header ) ; } if ( state > stateLength ) { throw new AuthLoginException ( bundleName , "invalidState" , new Object [ ] { new Integer ( state ) } ) ; } Callback [ ] ext = getCallback ( state ) ; if ( ext . length <= 0 ) { throw new AuthLoginException ( bundleName , "invalidCallbackIndex" , null ) ; } if ( ( header != null ) && ( header . length ( ) != 0 ) ) { PagePropertiesCallback pc = ( PagePropertiesCallback ) ( ( Callback [ ] ) internal . get ( state - 1 ) ) [ 0 ] ; pc . setHeader ( header ) ; } }
use this method to replace the header text from the xml file with new text . this method can be used multiple times on the same state replacing text with new text each time . useful for modules that control their own error handling .
