org.outerj.xreporter.report.definition
Class HttpOutputDefinition
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.outerj.xreporter.report.definition.HttpOutputDefinition
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, OutputDefinition
- public class HttpOutputDefinition
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements OutputDefinition, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.component.Composable
OutputDefinition
which will retrieve its content from a HTTP URL.
Field Summary |
protected org.apache.avalon.framework.component.ComponentManager |
componentManager
|
protected java.lang.String |
host
|
protected java.util.List |
parameters
|
protected java.lang.String |
path
|
protected int |
port
|
Method Summary |
void |
compose(org.apache.avalon.framework.component.ComponentManager componentManager)
|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
void |
generateOutputSaxFragment(org.xml.sax.ContentHandler contentHandler,
int chunkOffset,
int chunkLength,
ExecutionContext executionContext,
ResourceHandle resourceHandle)
Generate the output of the report as SAX-events, withouth startDocument and endDocument calls. |
protected void |
logOutputEvent(java.lang.String user,
java.lang.String customer,
long startTime,
long endTime,
java.lang.String reportId,
java.lang.String reportDefinitionId,
java.lang.String dataSourceId,
java.lang.String error)
|
boolean |
supportsColumns(ExecutionContext executionContext)
|
boolean |
supportsOrderBy(ExecutionContext executionContext)
|
boolean |
supportsQbe(ExecutionContext executionContext)
|
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
host
protected java.lang.String host
port
protected int port
path
protected java.lang.String path
parameters
protected java.util.List parameters
componentManager
protected org.apache.avalon.framework.component.ComponentManager componentManager
HttpOutputDefinition
public HttpOutputDefinition()
compose
public void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
throws org.apache.avalon.framework.component.ComponentException
- Specified by:
compose
in interface org.apache.avalon.framework.component.Composable
- Throws:
org.apache.avalon.framework.component.ComponentException
configure
public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
throws org.apache.avalon.framework.configuration.ConfigurationException
- Specified by:
configure
in interface org.apache.avalon.framework.configuration.Configurable
- Throws:
org.apache.avalon.framework.configuration.ConfigurationException
generateOutputSaxFragment
public void generateOutputSaxFragment(org.xml.sax.ContentHandler contentHandler,
int chunkOffset,
int chunkLength,
ExecutionContext executionContext,
ResourceHandle resourceHandle)
throws java.lang.Exception
- Description copied from interface:
OutputDefinition
- Generate the output of the report as SAX-events, withouth startDocument and endDocument calls.
- Specified by:
generateOutputSaxFragment
in interface OutputDefinition
- Throws:
java.lang.Exception
logOutputEvent
protected void logOutputEvent(java.lang.String user,
java.lang.String customer,
long startTime,
long endTime,
java.lang.String reportId,
java.lang.String reportDefinitionId,
java.lang.String dataSourceId,
java.lang.String error)
supportsQbe
public boolean supportsQbe(ExecutionContext executionContext)
- Specified by:
supportsQbe
in interface OutputDefinition
supportsOrderBy
public boolean supportsOrderBy(ExecutionContext executionContext)
- Specified by:
supportsOrderBy
in interface OutputDefinition
supportsColumns
public boolean supportsColumns(ExecutionContext executionContext)
- Specified by:
supportsColumns
in interface OutputDefinition