All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.deepexi.devops.proxy.DefaultProxyServlet Maven / Gradle / Ivy

package com.deepexi.devops.proxy;

import com.deepexi.devops.proxy.handler.post.ResponseHandler;
import com.deepexi.devops.proxy.handler.proxy.ProxyHandler;
import com.deepexi.devops.proxy.support.httpclient.HttpClientProxyInitHandler;

/**
 * 继承自 ProxyServlet,并实现了 initHandler() 方法添加了一些用于支持 HTTP 请求代理的处理器。
 * 
    *
  • 前置 Handler-{@link HttpClientProxyInitHandler},用于初始化 HttpClientProxy 代理对象
  • *
  • 代理 Handler-{@link ProxyHandler},用于执行代理请求
  • *
  • 后置 Handler-{@link ResponseHandler},用于将代理请求结果响应回客户端
  • *
* * @author linyuan - [email protected] * @since 2019-12-18 */ public class DefaultProxyServlet extends ProxyServlet { @Override public void initHandler() { addHandler(new HttpClientProxyInitHandler()); addHandler(new ProxyHandler()); addHandler(new ResponseHandler()); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy