org.wicketstuff.ki.KiServletRequestModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wicket-ki-security Show documentation
Show all versions of wicket-ki-security Show documentation
Ki Security for Apache Wicket. (The project formerly known as JSecurity)
package org.wicketstuff.ki;
import javax.servlet.http.HttpServletRequest;
import org.apache.wicket.RequestCycle;
import org.apache.wicket.model.LoadableDetachableModel;
import org.apache.wicket.protocol.http.WebRequestCycle;
public class KiServletRequestModel extends LoadableDetachableModel
{
@Override
protected HttpServletRequest load() {
return ((WebRequestCycle)RequestCycle.get()).getWebRequest().getHttpServletRequest();
}
}