summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/utils/GitBlitRequestUtils.java
blob: 9a35931030aca72f23298c483d43f2007613113a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.gitblit.utils;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.wicket.request.cycle.RequestCycle;

public class GitBlitRequestUtils {
	public static HttpServletRequest getServletRequest(){
		return (HttpServletRequest)RequestCycle.get().getRequest().getContainerRequest();
	}
	
	public static HttpServletResponse getServletResponse(){
		return (HttpServletResponse)RequestCycle.get().getResponse().getContainerResponse();
	}
	
}