Преглед изворни кода

remove servlet class

tags/v0.5.0
Jonathan Cobb пре 5 година
родитељ
комит
a6e895aaa1
1 измењених фајлова са 0 додато и 35 уклоњено
  1. +0
    -35
      bubble-server/src/main/java/bubble/servlet/ReverseProxyServlet.java

+ 0
- 35
bubble-server/src/main/java/bubble/servlet/ReverseProxyServlet.java Прегледај датотеку

@@ -1,35 +0,0 @@
package bubble.servlet;

import bubble.dao.account.AccountDAO;
import bubble.dao.app.AppMatcherDAO;
import bubble.server.BubbleConfiguration;
import org.eclipse.jetty.proxy.ProxyServlet;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class ReverseProxyServlet extends ProxyServlet.Transparent {

@Autowired private BubbleConfiguration configuration;
@Autowired private AppMatcherDAO matcherDAO;
@Autowired private AccountDAO accountDAO;

@Override
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
final String host = req.getRemoteHost();
final String xaub64 = req.getHeader("X-Authorized-User");
if (xaub64 == null) {
resp.sendError(403);
return;
}
// final String xau = new String(Base64.decode(xaub64));
// final Account account =
// if (matcherDAO.findByAccountAndFqdnAndEnabled(account.getUuid(), host))
// check SiteMatchers here...
super.service(req, resp);
}

}

Loading…
Откажи
Сачувај