KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > adaptor > http > XSLTProcessorMBean


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.tools.adaptor.http;
10
11 import java.util.Locale JavaDoc;
12
13 /**
14  * Management interface for the XSLTProcessor MBean.
15  *
16  * @version $Revision: 1.3 $
17  */

18 public interface XSLTProcessorMBean extends ProcessorMBean
19 {
20    /**
21     * Sets the jar/zip file or the directory where to find the XSL files
22     *
23     * @see #getFile
24     */

25    public void setFile(String JavaDoc file);
26
27    /**
28     * Returns the jar/zip file or the directory where XSL files are loaded
29     *
30     * @see #setFile
31     */

32    public String JavaDoc getFile();
33
34    /**
35     * Returns the path of the XSL templates inside a jar file.
36     *
37     * @see #setPathInJar
38     */

39    public String JavaDoc getPathInJar();
40
41    /**
42     * Specifies the path of the XSL templates inside a jar file.
43     *
44     * @see #getPathInJar
45     */

46    public void setPathInJar(String JavaDoc path);
47
48    /**
49     * Returns the default start page
50     *
51     * @see #setDefaultPage
52     */

53    public String JavaDoc getDefaultPage();
54
55    /**
56     * Sets the default start page, serverbydomain as a default
57     *
58     * @see #getDefaultPage
59     */

60    public void setDefaultPage(String JavaDoc defaultPage);
61
62    /**
63     * Returns if the XSL files are contained in a jar/zip file.
64     *
65     * @see #isUsePath
66     * @see #setFile
67     */

68    boolean isUseJar();
69
70    /**
71     * Returns if the XSL files are contained in a path.
72     *
73     * @see #isUseJar
74     * @see #setFile
75     */

76    boolean isUsePath();
77
78    /**
79     * Maps a given extension with a specified MIME type
80     */

81    public void addMimeType(String JavaDoc extension, String JavaDoc type);
82
83    /**
84     * Sets the caching of the XSL Templates.
85     */

86    public void setUseCache(boolean useCache);
87
88    /**
89     * Returns if the XSL Templates are cached
90     */

91    boolean isUseCache();
92
93    /**
94     * Returns the Locale used to internationalize the output
95     */

96    public Locale JavaDoc getLocale();
97
98    /**
99     * Sets the locale used to internationalize the output
100     */

101    public void setLocale(Locale JavaDoc locale);
102
103    /**
104     * Sets the locale used to internationalize the output, as a string
105     */

106    public void setLocaleString(String JavaDoc locale);
107 }
108
Popular Tags