org.esupportail.portal.channels.CWebdav.channelAction
Class AbstractDefaultRenderXml

java.lang.Object
  extended byorg.esupportail.portal.channels.CWebdav.channelAction.AbstractDefaultRenderXml
Direct Known Subclasses:
DefaultRenderXml, DefaultRenderXml

public abstract class AbstractDefaultRenderXml
extends java.lang.Object

Id: AbstractDefaultRenderXml.java,v 1.0 24 sept. 2004 Copyright (c) 2004 Esup Portail (www.esup-portail.org) Classes: AbstractDefaultRenderXml Original Author: Yohan Colmant The default render xml for the channel. It defines the generic bars likes navigation


Constructor Summary
AbstractDefaultRenderXml()
           
 
Method Summary
protected static java.lang.String getLengthFormat(long contentLength)
          Return the good length format to print
protected static java.lang.StringBuffer getXmlError(ChannelException error, int internalError)
          Get the XML for the error bar
static java.lang.StringBuffer getXmlForPasswordSetting(java.util.ArrayList spaces, Space currentSpace, ChannelException error, ChannelConfiguration config)
          Return the XML representing the curent dir
protected static java.lang.StringBuffer getXmlInformation(java.lang.String information)
          Get the XML for the info bar
protected static java.lang.StringBuffer getXmlNavigation(java.util.ArrayList spaces, Space currentSpace)
          Get the XML for the navigation bar
protected static java.lang.StringBuffer getXmlPassword(java.lang.String login, java.lang.String password)
          Get the XML for the password bar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDefaultRenderXml

public AbstractDefaultRenderXml()
Method Detail

getXmlNavigation

protected static java.lang.StringBuffer getXmlNavigation(java.util.ArrayList spaces,
                                                         Space currentSpace)
Get the XML for the navigation bar

Parameters:
spaces - the visibles spaces
currentSpace - the current space used
Returns:
the XML as a StringBuffer

getXmlError

protected static java.lang.StringBuffer getXmlError(ChannelException error,
                                                    int internalError)
Get the XML for the error bar

Parameters:
error - the error
internalError - if there is an internal error
Returns:
the XML as a StringBuffer

getXmlInformation

protected static java.lang.StringBuffer getXmlInformation(java.lang.String information)
Get the XML for the info bar

Parameters:
information - the information message code
Returns:
the XML as a StringBuffer

getXmlForPasswordSetting

public static java.lang.StringBuffer getXmlForPasswordSetting(java.util.ArrayList spaces,
                                                              Space currentSpace,
                                                              ChannelException error,
                                                              ChannelConfiguration config)
Return the XML representing the curent dir

Parameters:
spaces - the visibles spaces
currentSpace - the current space used
error - the error exception
config - the Config object for the Channel
Returns:
the xml generated

getXmlPassword

protected static java.lang.StringBuffer getXmlPassword(java.lang.String login,
                                                       java.lang.String password)
Get the XML for the password bar

Parameters:
login - the user login used
password - the user password used
Returns:
the XML as a StringBuffer

getLengthFormat

protected static java.lang.String getLengthFormat(long contentLength)
Return the good length format to print

Parameters:
contentLength - the content length
Returns:
the string to show