|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.gv.egiz.pdfas.web.helper.SignServletHelper
| Constructor Summary | |
SignServletHelper()
|
|
| Method Summary | |
static void |
disableBrowserCacheForResponse(HttpServletResponse response)
|
static void |
dispatch(HttpServletRequest request,
HttpServletResponse response,
String resource,
ServletContext context)
|
static void |
finishSign(SignSessionInformation si,
HttpServletRequest request,
HttpServletResponse response,
ServletContext context)
Finishes the sign. |
static String |
formatFileNameForSignResult(String file_name,
String mimeType)
Formats the file name according to the SignResult. |
static void |
prepareSign(SignSessionInformation si)
Prepares the sign. |
static void |
returnSignResponse(SignSessionInformation si,
HttpServletRequest request,
HttpServletResponse response)
Returns the data in the SignResult with proper content disposition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SignServletHelper()
| Method Detail |
public static void dispatch(HttpServletRequest request,
HttpServletResponse response,
String resource,
ServletContext context)
throws ServletException,
IOException
ServletException
IOException
public static void prepareSign(SignSessionInformation si)
throws PresentableException
This prepares the data for both being signed or being previewed.
si - The SessionInformation to be prepared.
PresentableException - f.e.
public static void finishSign(SignSessionInformation si,
HttpServletRequest request,
HttpServletResponse response,
ServletContext context)
throws PresentableException,
IOException,
ServletException
For non local connectors this concludes the sign process, signs the document and returns the result. For local connectors this initializes the local sign process and redirects to following servlets.
si - The SessionInformation.request - The servlet request for dispatching.response - The servlet response for dispatching.context - The servlet context for dispatching.
PresentableException - f.e.
IOException - f. e.
ServletException - f. e.
public static void returnSignResponse(SignSessionInformation si,
HttpServletRequest request,
HttpServletResponse response)
throws IOException
si - SessionInformation.response - The servlet response.
IOException - The IO Exception.public static void disableBrowserCacheForResponse(HttpServletResponse response)
public static String formatFileNameForSignResult(String file_name,
String mimeType)
file_name - The file name.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||