|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.instantbank.lettertemplate.editor.applet.TemplateEditorProxy
Proxy for the Template Editor servlet. Sends commands and receives results from the servlet.
| Field Summary | |
(package private) java.io.ObjectInputStream |
in
Input stream from the servlet. |
(package private) java.net.URL |
servlet
The fully-qualified URL to the called servlet. |
(package private) java.net.URL |
timeout
The URL of the timeout page |
(package private) java.net.URL |
webBase
The complete URL to the servlet web server (for instance, 'http://www.sun.com:8080'). |
| Constructor Summary | |
TemplateEditorProxy(java.net.URL web)
TemplateEditorProxy constructor. |
|
| Method Summary | |
boolean |
controlTimeout(java.applet.AppletContext appContext)
Goes to the server and verifies if time out has delayed. |
void |
exit(java.lang.String url)
exit |
java.lang.String |
extraservice()
Asks for an extra "debugging" service. |
CodeDescription[] |
loadCategories()
Asks for code and description of the template categories |
CodeDescription[] |
loadCodesStamps(long category,
int printType,
java.lang.String template,
java.lang.String header,
java.lang.String body,
java.lang.String closing)
Asks the service of loading code and stamp of a template and components. |
java.util.ArrayList |
loadComponent(long code)
Asks for the service of loading a full LetterComponent from the
dadabase. |
CodeDescription |
loadComponentCode(int compType,
int printType,
java.lang.String name)
Loads the < code,stamp> of a component from the database. |
CodeDescription[] |
loadComponentsDescription(int cmpType,
int pType)
Asks for code and description of the components, for a given component type and print type. |
byte[] |
loadImageRepository(java.lang.String name)
Asks the service of loading an image --of the current company-- from the data base. |
java.lang.String[] |
loadImagesNamesRepository()
Loads the names of the images from the data base. |
java.util.ArrayList |
loadTemplate(long code)
Loads a template from the data base. |
CodeDescription[] |
loadTemplateCodes(long code)
Asks for the service of loading < code, stamp> for a template and its components. |
CodeDescription[] |
loadTemplatesDescription(long category,
int pType)
Asks for code and description of the templates, for a given category and print type. |
CodeDescription[] |
loadVariableFormats()
Asks for the service of loading variable formats. |
java.util.ArrayList |
loadVariables()
Asks for the service of loading loan variables. |
CodeDescription |
storeComponent(LetterComponent component)
Asks for the service of storing a letter component without changing its links with any component. |
CodeDescription |
storeComponentAs(long templateCode,
LetterComponent component)
Asks for the service of storing a letter component bound to a template. |
CodeDescription[] |
storeTemplate(Template template)
Asks for the service of storing a template. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
java.net.URL servlet
java.net.URL webBase
java.net.URL timeout
java.io.ObjectInputStream in
| Constructor Detail |
public TemplateEditorProxy(java.net.URL web)
throws java.net.MalformedURLException
web - Servlet's Web server URL (excluding
servlet path).java.net.MalformedURLException - Description of the Exception| Method Detail |
public boolean controlTimeout(java.applet.AppletContext appContext)
timeout page; otherwise it returns silently.appContext - Context of the applet that invokes the service.
public java.lang.String[] loadImagesNamesRepository()
throws java.lang.Exception
java.lang.Exception - Description of the Exception
public CodeDescription[] storeTemplate(Template template)
throws java.lang.Exception
template - The full "in memory" representation of a template.java.lang.Exception - Description of the Exception
public byte[] loadImageRepository(java.lang.String name)
throws java.lang.Exception
name - The name of the image in the data base.LetterTemplate.loadImageRepository(String)
and TemplateEditorServlet.doPost(HttpServletRequest,HttpServletResponse)java.lang.Exception - Description of the Exception
public void exit(java.lang.String url)
throws java.lang.Exception
url - java.lang.Exception - Description of the Exception
public CodeDescription[] loadCategories()
throws java.lang.Exception
java.lang.Exception - Description of the Exception
public CodeDescription[] loadTemplatesDescription(long category,
int pType)
throws java.lang.Exception
category - The category code for the enquired templates.pType - Print type.java.lang.Exception - Description of the Exception
public CodeDescription[] loadTemplateCodes(long code)
throws java.lang.Exception
code - The template's code.java.lang.Exception - Description of the Exception
public CodeDescription[] loadComponentsDescription(int cmpType,
int pType)
throws java.lang.Exception
cmpType - Component type.pType - Print type.java.lang.Exception - Description of the Exception
public java.util.ArrayList loadTemplate(long code)
throws java.lang.Exception
code - The template's code.java.lang.Exception - Description of the Exception
public CodeDescription[] loadCodesStamps(long category,
int printType,
java.lang.String template,
java.lang.String header,
java.lang.String body,
java.lang.String closing)
throws java.lang.Exception
category - Category of templateprintType - Print typeheader - Name of the header componentbody - Name of the body componentclosing - Name of the closing componenttemplate - java.lang.Exception - Description of the Exception
public CodeDescription loadComponentCode(int compType,
int printType,
java.lang.String name)
throws java.lang.Exception
compType - Type of the component (Header/Body/Closing).printType - LASER/TYPEWRITTERname - Component's namejava.lang.Exception - Description of the Exception
public java.util.ArrayList loadComponent(long code)
throws java.lang.Exception
LetterComponent from the
dadabase.code - The code of the component.java.lang.Exception - Description of the Exception
public CodeDescription storeComponent(LetterComponent component)
throws java.lang.Exception
component - The component to be saved.java.lang.Exception - Description of the Exception
public CodeDescription storeComponentAs(long templateCode,
LetterComponent component)
throws java.lang.Exception
templateCode - Code of the template bound to the component.component - The component to be saved and linked to the template.java.lang.Exception - Description of the Exception
public java.util.ArrayList loadVariables()
throws java.lang.Exception
java.lang.Exception - Description of the Exception
public CodeDescription[] loadVariableFormats()
throws java.lang.Exception
java.lang.Exception - Description of the Exception
public java.lang.String extraservice()
throws java.lang.Exception
java.lang.Exception - Description of the Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||