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

org.redkale.net.Servlet Maven / Gradle / Ivy

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.redkale.net;

import org.redkale.util.AnyValue;
import java.io.IOException;

/**
 * 协议请求处理类
 *
 * 

* 详情见: https://redkale.org * * @author zhangjx * @param Context的子类型 * @param Request的子类型 * @param

Response的子类型 */ public abstract class Servlet, P extends Response> { AnyValue _conf; //当前Servlet的配置 public void init(C context, AnyValue config) { } public abstract void execute(R request, P response) throws IOException; public void destroy(C context, AnyValue config) { } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy