com.silentgo.core.action.ActionParam Maven / Gradle / Ivy
package com.silentgo.core.action;
import com.silentgo.servlet.http.Request;
import com.silentgo.servlet.http.Response;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import java.io.IOException;
/**
* Project : silentgo
* com.silentgo.core.action
*
* @author teddyzhu
*
* Created by on 16/7/18.
*/
public class ActionParam {
private Request request;
private Response response;
private String requestURL;
private FilterChain filterChain;
public ActionParam(Request request, Response response, String requestURL, FilterChain filterChain) {
this.request = request;
this.response = response;
this.requestURL = requestURL;
this.filterChain = filterChain;
}
public Request getRequest() {
return request;
}
public Response getResponse() {
return response;
}
public String getRequestURL() {
return requestURL;
}
public void setRequest(Request request) {
this.request = request;
}
public void setResponse(Response response) {
this.response = response;
}
public void doFilter(Request request, Response response) throws IOException, ServletException {
filterChain.doFilter(request, response);
}
}