fr.paris.lutece.plugins.jasper.service
Enum JasperFileLinkService

java.lang.Object
  extended by java.lang.Enum<JasperFileLinkService>
      extended by fr.paris.lutece.plugins.jasper.service.JasperFileLinkService
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JasperFileLinkService>

public enum JasperFileLinkService
extends java.lang.Enum<JasperFileLinkService>


Enum Constant Summary
INSTANCE
          Implementation of a singleton instance
 
Method Summary
static byte[] exportFile(javax.servlet.http.HttpServletRequest request)
          Exports the files in a byte array
static byte[] exportFile(javax.servlet.http.HttpServletRequest request, java.lang.String strJasperName)
           
static java.lang.String getFileName(javax.servlet.http.HttpServletRequest request)
           
 java.lang.String getKey(javax.servlet.http.HttpServletRequest request)
          Gets the cache key
static java.lang.String getLink(java.lang.String strReportId, java.lang.String strType)
           
 java.util.List<java.lang.String> getValues(javax.servlet.http.HttpServletRequest request)
          Extracts values from the Http request
static JasperFileLinkService valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JasperFileLinkService[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSTANCE

public static final JasperFileLinkService INSTANCE
Implementation of a singleton instance

Method Detail

values

public static JasperFileLinkService[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JasperFileLinkService c : JasperFileLinkService.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JasperFileLinkService valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getLink

public static java.lang.String getLink(java.lang.String strReportId,
                                       java.lang.String strType)

exportFile

public static byte[] exportFile(javax.servlet.http.HttpServletRequest request)
Exports the files in a byte array

Parameters:
request - The Http request
Returns:
An array of byte which is the content of the archive

exportFile

public static byte[] exportFile(javax.servlet.http.HttpServletRequest request,
                                java.lang.String strJasperName)

getFileName

public static java.lang.String getFileName(javax.servlet.http.HttpServletRequest request)
Parameters:
request -
Returns:

getValues

public java.util.List<java.lang.String> getValues(javax.servlet.http.HttpServletRequest request)
Extracts values from the Http request

Parameters:
request - The Http request
Returns:
A list of values

getKey

public java.lang.String getKey(javax.servlet.http.HttpServletRequest request)
Gets the cache key

Parameters:
nMode - The mode
request - The HTTP request
Returns:
The key


Copyright © 2012 Mairie de Paris. All Rights Reserved.