forked from jgraph/mxgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.java
More file actions
executable file
·34 lines (27 loc) · 875 Bytes
/
Config.java
File metadata and controls
executable file
·34 lines (27 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.mxgraph.examples.web;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mxgraph.util.mxUtils;
/**
* Allows to provide a client with a backend specific configuration. See
* javascript/examples/editors/config/diagrameditor.xml for more details.
*/
public class Config extends HttpServlet
{
/**
*
*/
private static final long serialVersionUID = 8570324879191595944L;
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException
{
String filename = Main.class
.getResource(
"/com/mxgraph/examples/web/resources/diagrameditor-backend.xml")
.getPath();
response.getWriter().print(mxUtils.readFile(filename));
}
}