com.davisor.ejb.chart
Interface ChartEJBObject

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface ChartEJBObject
extends javax.ejb.EJBObject

Remote interface for ChartSessionBean stateless session EJB. Used to create Chart objects.


Method Summary
 Chart createChart(java.net.URL context, java.lang.String source, java.util.Map attributes)
          Creates a Chart object from a given Chart XML source URL.
 Chart createChartFromString(java.net.URL contextURL, java.lang.String chartXML, java.util.Map attributes)
          Creates a Chart object from a given Chart XML string.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

createChart

public Chart createChart(java.net.URL context,
                         java.lang.String source,
                         java.util.Map attributes)
                  throws ChartException,
                         java.io.IOException,
                         java.net.MalformedURLException,
                         java.rmi.RemoteException
Creates a Chart object from a given Chart XML source URL. This method can be called several times with different parameters during ChartEJBObject life time.

Parameters:
context - Context URL (can be null if source contains full URL)
source - Chart XML document source.
attributes - Map of external attributes used in Chart XML (can be null). Attribute objects must be serializable.
Throws:
ChartException - Thrown if chart generation fails
java.io.IOException - Thrown if an I/O exception of some sort occurs.
java.net.MalformedURLException - Thrown if the source specifies an unknown protocol or the string can not be parsed.
java.rmi.RemoteException - Thrown if RMI exception occurs.

createChartFromString

public Chart createChartFromString(java.net.URL contextURL,
                                   java.lang.String chartXML,
                                   java.util.Map attributes)
                            throws ChartException,
                                   java.io.IOException,
                                   java.rmi.RemoteException
Creates a Chart object from a given Chart XML string. This method can be called several times with different parameters during ChartEJBObject life time.

Parameters:
chartXML - Chart XML document content.
attributes - Map of external attributes used in Chart XML (can be null). Attribute objects must be serializable.
Throws:
ChartException - Thrown if chart generation fails
java.io.IOException - Thrown if an I/O exception of some sort occurs.
java.rmi.RemoteException - Thrown if RMI exception occurs.


Copyright © 2001-2004 Davisor Oy. All Rights Reserved.