com.github.dmgcodevil.jmspy.ext.freemarker.HttpServletRequestInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmspy-ext-freemarker Show documentation
Show all versions of jmspy-ext-freemarker Show documentation
Library to record method invocations
The newest version!
package com.github.dmgcodevil.jmspy.ext.freemarker;
import com.google.common.base.Verify;
import javax.servlet.http.HttpServletRequest;
/**
* Information about {@link HttpServletRequest}.
*
* @author dmgcodevil
*/
public class HttpServletRequestInfo {
private String requestUrl;
public HttpServletRequestInfo(HttpServletRequest request) {
Verify.verifyNotNull(request, "request cannot be null");
requestUrl = request.getRequestURL().toString();
}
public String getRequestUrl() {
return requestUrl;
}
public void setRequestUrl(String requestUrl) {
this.requestUrl = requestUrl;
}
}