jp.terasoluna.fw.web.struts.actions
Interface DownloadFileNameEncoder

All Known Implementing Classes:
DownloadFileNameEncoderImpl

public interface DownloadFileNameEncoder

This interface is implemented by the class which encodes the specified file name at the time of download.

Encoding method can be changed by implementing this class and performing the settings mentioned below.

Bean definition file

 <bean class="jp.terasoluna.fw.web.struts.actions.FileDownloadUtil">
   <property name="encoder" ref="encoder"/>
 </bean>
 <bean name="encoder" class="sample.MyEncoder"/>
 


Method Summary
 java.lang.String encode(java.lang.String original, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Encodes the specified file name at the time of download.
 

Method Detail

encode

java.lang.String encode(java.lang.String original,
                        javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
Encode the specified file name at the time of download.

Parameters:
original - Original string.
Returns:
Encoded string.