Package com.trendmicro.tme.grapheditor

Source Code of com.trendmicro.tme.grapheditor.Proxy

package com.trendmicro.tme.grapheditor;

import java.net.MalformedURLException;

import org.eclipse.jetty.http.HttpURI;
import org.eclipse.jetty.servlets.ProxyServlet;

public class Proxy extends ProxyServlet.Transparent {
    public Proxy() {
        super("/", "0.0.0.0", 0);
    }
   
    @Override
    protected HttpURI proxyHttpURI(String scheme, String serverName, int serverPort, String uri) throws MalformedURLException {
        return new HttpURI("http://" + uri.replace("/proxy/", ""));
    }
}
TOP

Related Classes of com.trendmicro.tme.grapheditor.Proxy

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.