|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
at.knowcenter.wag.egov.egiz.web.Sign
public class Sign
This method is the sign servlet for the pdf-as web application. It takes get and post requests fill out jsp templates and give the user feedback about the results of the sign process
Nested Class Summary | |
---|---|
protected class |
Sign.SignPreviewInfo
This class is just used to put the pdf byte array into the session. |
Field Summary | |
---|---|
protected static String |
AUTH
Authorisation marker for the http header string. |
protected static String |
AUTH_BASIC
Authorisation marker for the http header string. |
Constructor Summary | |
---|---|
Sign()
|
Method Summary | |
---|---|
protected void |
dispatch(HttpServletRequest request,
HttpServletResponse response,
String resource)
|
protected static void |
dispatch(HttpServletRequest request,
HttpServletResponse response,
String resource,
ServletContext context)
|
void |
dispatchToPreview(String document_text,
String connector,
String mode,
String signature_type,
String submit_url,
HttpServletRequest request,
HttpServletResponse response)
|
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
|
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
|
static void |
finishSign(SessionInformation si,
HttpServletRequest request,
HttpServletResponse response,
ServletContext context)
|
static String |
formatFileName(String file_name)
Formats the file name so that it is suitable for content disposition. |
static String |
formatFileNameForSignResult(String file_name,
SignResult sign_result)
Formats the file name according to the SignResult. |
static void |
prepareDispatchToErrorPage(PresentableException pe,
HttpServletRequest request)
|
static void |
prepareSign(SessionInformation si)
|
static void |
returnSignResponse(SessionInformation si,
HttpServletResponse response)
Returns the data in the SignResult with proper content disposition. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String AUTH
protected static final String AUTH_BASIC
Constructor Detail |
---|
public Sign()
Method Detail |
---|
protected void dispatch(HttpServletRequest request, HttpServletResponse response, String resource) throws ServletException, IOException
ServletException
IOException
protected static void dispatch(HttpServletRequest request, HttpServletResponse response, String resource, ServletContext context) throws ServletException, IOException
ServletException
IOException
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class HttpServlet
ServletException
IOException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost
in class HttpServlet
ServletException
IOException
public static void prepareSign(SessionInformation si) throws PresentableException
PresentableException
public static void finishSign(SessionInformation si, HttpServletRequest request, HttpServletResponse response, ServletContext context) throws PresentableException, IOException, ServletException
PresentableException
IOException
ServletException
public static void prepareDispatchToErrorPage(PresentableException pe, HttpServletRequest request)
public void dispatchToPreview(String document_text, String connector, String mode, String signature_type, String submit_url, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
ServletException
IOException
public static String formatFileName(String file_name)
file_name
- The file name.
public static String formatFileNameForSignResult(String file_name, SignResult sign_result)
file_name
- The file name.sign_result
- The sign result.
public static void returnSignResponse(SessionInformation si, HttpServletResponse response) throws IOException
si
- SessionInformation.response
- The servlet response.
IOException
- The IO Exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |