org.equanda.reporting.servlet
Class ServletResolver

java.lang.Object
  extended by org.equanda.reporting.servlet.ServletResolver
All Implemented Interfaces:
ReportResolver

public class ServletResolver
extends Object
implements ReportResolver

report resolver

Author:
NetRom team

Field Summary
static String REPORTS_IMAGE_PATH
           
static String REPORTS_PATH
           
 
Constructor Summary
ServletResolver(javax.servlet.ServletContext context)
           
 
Method Summary
 InputStream getImageInputStream(String target)
          Get the InputStream for an image resource.
 String getImageRealPath(String target)
           
 String getImageURI(String contextPath)
           
 InputStream getInputStream(String target)
          Get the InputStream for a report resource (normally a subreport).
 String getRealPath(String target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPORTS_PATH

public static final String REPORTS_PATH
See Also:
Constant Field Values

REPORTS_IMAGE_PATH

public static final String REPORTS_IMAGE_PATH
See Also:
Constant Field Values
Constructor Detail

ServletResolver

public ServletResolver(javax.servlet.ServletContext context)
Method Detail

getInputStream

public InputStream getInputStream(String target)
Description copied from interface: ReportResolver
Get the InputStream for a report resource (normally a subreport).

Specified by:
getInputStream in interface ReportResolver
Parameters:
target - name of target
Returns:
InputStream with the resource

getRealPath

public String getRealPath(String target)

getImageInputStream

public InputStream getImageInputStream(String target)
Description copied from interface: ReportResolver
Get the InputStream for an image resource.

Specified by:
getImageInputStream in interface ReportResolver
Parameters:
target - name of target
Returns:
InputStream with the resource

getImageRealPath

public String getImageRealPath(String target)

getImageURI

public String getImageURI(String contextPath)


Copyright © 2007-2009. All Rights Reserved.