deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.portal.common.control
Class AbstractSimplePrintListener

java.lang.Object
  extended by org.deegree.enterprise.control.AbstractListener
      extended by org.deegree.portal.common.control.AbstractSimplePrintListener
All Implemented Interfaces:
EventListener, WebListener
Direct Known Subclasses:
SimplePrintListener, SimplePrintListener

public abstract class AbstractSimplePrintListener
extends AbstractListener

performs a print request/event by creating a PDF document from the current map. For this JASPER is used. Well known parameters that can be passed to a jaser report are:


Additionaly parameters named 'TA:XXXX' can be used. deegree will create a k-v-p for each TA:XXXX passed as part of RPC.

Version:
$Revision: 18283 $, $Revision: 18283 $, $Date: 2009-06-30 09:23:23 +0200 (Di, 30. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: apoth $

Constructor Summary
AbstractSimplePrintListener()
           
 
Method Summary
 void actionPerformed(FormEvent e)
           
protected  double calcScale(String path, String getmap)
           
protected  User getUser()
          returns null and should be overwritten by an extending class
protected  String getVendorspecificParameters(RPCWebEvent rpc)
          returns null and should be overwritten by an extending class
protected abstract  ViewContext getViewContext(RPCWebEvent rpc)
          reads the view context to print from the users session
protected  void validate(RPCWebEvent rpc)
          validates the incoming request/RPC if conatins all required elements
 
Methods inherited from class org.deegree.enterprise.control.AbstractListener
getAlternativeNextPage, getHomePath, getInitParameter, getInitParameterList, getNextPage, getRequest, getReturnValue, gotoErrorPage, handle, setAlternativeNextPage, setDefaultAlternativeNextPage, setDefaultNextPage, setNextPage, setReturnValue, toModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSimplePrintListener

public AbstractSimplePrintListener()
Method Detail

actionPerformed

public void actionPerformed(FormEvent e)
Specified by:
actionPerformed in interface WebListener
Specified by:
actionPerformed in class AbstractListener
Parameters:
e -

calcScale

protected double calcScale(String path,
                           String getmap)
                    throws InconsistentRequestException,
                           XMLParsingException,
                           IOException,
                           SAXException
Throws:
InconsistentRequestException
XMLParsingException
IOException
SAXException

getVendorspecificParameters

protected String getVendorspecificParameters(RPCWebEvent rpc)
returns null and should be overwritten by an extending class

Returns:
null

getUser

protected User getUser()
returns null and should be overwritten by an extending class

Returns:
null

getViewContext

protected abstract ViewContext getViewContext(RPCWebEvent rpc)
reads the view context to print from the users session

Parameters:
rpc -
Returns:
the viewcontext defined by the rpc

validate

protected void validate(RPCWebEvent rpc)
                 throws PortalException
validates the incoming request/RPC if conatins all required elements

Parameters:
rpc -
Throws:
PortalException

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org