Skip to content
Snippets Groups Projects
Commit 5449139e authored by Benguria Elguezabal, Gorka's avatar Benguria Elguezabal, Gorka
Browse files

public release

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 75 additions and 0 deletions
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/**
* $Id: ProxyServlet.java,v 1.4 2013/12/13 13:18:11 david Exp $
* Copyright (c) 2011-2012, JGraph Ltd
*/
package com.mxgraph.online;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation ProxyServlet
*/
@SuppressWarnings("serial")
public class ImgurRedirectServlet extends HttpServlet
{
/**
* @see HttpServlet#HttpServlet()
*/
public ImgurRedirectServlet()
{
super();
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException
{
String uri = request.getRequestURI();
int last = uri.lastIndexOf("/");
if (last > 0)
{
String id = uri.substring(last + 1);
response.setHeader("Location",
"https://www.draw.io/?chrome=0&lightbox=1&layers=1&url=http%3A%2F%2Fi.imgur.com%2F"
+ id + ".png"
+ "&edit=https%3A%2F%2Fwww.draw.io%2F%3Furl%3Dhttp%253A%252F%252Fi.imgur.com%252F"
+ id + ".png");
response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);
}
else
{
response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
}
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
cff-version: 1.2.0
message: "To cite draw.io in publications please use:"
type: software
license: Apache-2.0
abstract: "draw.io - JavaScript Diagramming and Whiteboard Application"
authors:
- name: "JGraph"
website: "http://www.diagrams.net"
title: "draw.io"
version: 15.5.2
date-released: 2021-10-14
repository-code: "https://github.com/jgraph/drawio"
url: "https://www.diagrams.net/"
\ No newline at end of file
Manifest-Version: 1.0
Class-Path:
This diff is collapsed.
Replace_with_your_own_cloud_convert_api_key
\ No newline at end of file
Replace_with_your_own_dropbox_client_id
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment