public class ServletUtils extends Object
Constructor and Description |
---|
ServletUtils() |
Modifier and Type | Method and Description |
---|---|
static Request |
getInternalRequest(javax.servlet.http.HttpServletRequest servletRequest)
Returns internal Grizzly
Request associated with the passed
HttpServletRequest . |
static Response |
getInternalResponse(javax.servlet.http.HttpServletResponse servletResponse)
Returns internal Grizzly
Response associated with the passed
HttpServletResponse . |
public static Request getInternalRequest(javax.servlet.http.HttpServletRequest servletRequest)
Request
associated with the passed
HttpServletRequest
.servletRequest
- HttpServletRequest
Request
associated with the passed
HttpServletRequest
.IllegalArgumentException
- if passed HttpServletRequest
is not based on Grizzly Request
.public static Response getInternalResponse(javax.servlet.http.HttpServletResponse servletResponse)
Response
associated with the passed
HttpServletResponse
.servletResponse
- HttpServletResponse
Response
associated with the passed
HttpServletResponse
.IllegalArgumentException
- if passed HttpServletResponse
is not based on Grizzly Response
.Copyright © 2014 Oracle Corporation. All Rights Reserved.