public class FixedServletUtils extends Object
| Constructor and Description |
|---|
FixedServletUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.nimbusds.oauth2.sdk.http.HTTPRequest |
createHTTPRequest(javax.servlet.http.HttpServletRequest sr)
Creates a new HTTP request from the specified HTTP servlet request.
|
static com.nimbusds.oauth2.sdk.http.HTTPRequest |
createHTTPRequest(javax.servlet.http.HttpServletRequest sr,
long maxEntityLength)
Creates a new HTTP request from the specified HTTP servlet request.
|
public static com.nimbusds.oauth2.sdk.http.HTTPRequest createHTTPRequest(javax.servlet.http.HttpServletRequest sr)
throws IOException
sr - The servlet request. Must not be null.IllegalArgumentException - The the servlet request method is
not GET, POST, PUT or DELETE or the
content type header value couldn't
be parsed.IOException - For a POST or PUT body that
couldn't be read due to an I/O
exception.public static com.nimbusds.oauth2.sdk.http.HTTPRequest createHTTPRequest(javax.servlet.http.HttpServletRequest sr,
long maxEntityLength)
throws IOException
sr - The servlet request. Must not be
null.maxEntityLength - The maximum entity length to accept, -1 for
no limit.IllegalArgumentException - The the servlet request method is
not GET, POST, PUT or DELETE or the
content type header value couldn't
be parsed.IOException - For a POST or PUT body that
couldn't be read due to an I/O
exception.Copyright © 2015–2017. All rights reserved.