Package org.glassfish.grizzly.servlet
Class ServletUtils
java.lang.Object
org.glassfish.grizzly.servlet.ServletUtils
Grizzly Servlet utilities.
- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestgetInternalRequest(HttpServletRequest servletRequest) Returns internal GrizzlyRequestassociated with the passedHttpServletRequest.static ResponsegetInternalResponse(HttpServletResponse servletResponse) Returns internal GrizzlyResponseassociated with the passedHttpServletResponse.
-
Constructor Details
-
ServletUtils
public ServletUtils()
-
-
Method Details
-
getInternalRequest
Returns internal GrizzlyRequestassociated with the passedHttpServletRequest.- Parameters:
servletRequest-HttpServletRequest- Returns:
- internal Grizzly
Requestassociated with the passedHttpServletRequest. - Throws:
IllegalArgumentException- if passedHttpServletRequestis not based on GrizzlyRequest.
-
getInternalResponse
Returns internal GrizzlyResponseassociated with the passedHttpServletResponse.- Parameters:
servletResponse-HttpServletResponse- Returns:
- internal Grizzly
Responseassociated with the passedHttpServletResponse. - Throws:
IllegalArgumentException- if passedHttpServletResponseis not based on GrizzlyResponse.
-