com.github.datalking.web.context.request.WebRequest Maven / Gradle / Ivy
package com.github.datalking.web.context.request;
import com.github.datalking.web.http.RequestAttributes;
import java.security.Principal;
import java.util.Iterator;
import java.util.Map;
/**
* @author yaoo on 4/28/18
*/
public interface WebRequest extends RequestAttributes {
Object getNativeRequest();
T getNativeRequest(Class requiredType);
Object getNativeResponse();
T getNativeResponse(Class requiredType);
String getHeader(String headerName);
String[] getHeaderValues(String headerName);
Iterator getHeaderNames();
String getParameter(String paramName);
String[] getParameterValues(String paramName);
Iterator getParameterNames();
Map getParameterMap();
String getContextPath();
String getRemoteUser();
Principal getUserPrincipal();
boolean isUserInRole(String role);
boolean isSecure();
boolean checkNotModified(long lastModifiedTimestamp);
boolean checkNotModified(String etag);
String getDescription(boolean includeClientInfo);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy