public class SPFormAuthrenticationRequestUtil extends Object
SPFormAuthenticationRequestWrapper.
If different FormData for request has to be used, new FormData is saved as an attachment to exchange.
SPFormAuthenticationRequestWrapper then returns parameters based also on this new FormData.| Modifier and Type | Class and Description |
|---|---|
static class |
SPFormAuthrenticationRequestUtil.SPFAMFormDataWrapper
Holder for
FormData, to be add as attachment into exchange. |
| Modifier and Type | Field and Description |
|---|---|
static AttachmentKey<SPFormAuthrenticationRequestUtil.SPFAMFormDataWrapper> |
FORM_DATA_ATTACHMENT_KEY |
| Constructor and Description |
|---|
SPFormAuthrenticationRequestUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getStoredBuffer(HttpServerExchange exchange) |
static int |
getStoredBufferLength(HttpServerExchange exchange) |
static void |
store(byte[] buffer,
FormData formData,
HttpServerExchange exchange,
int contentLength) |
static HttpServletRequest |
wrapRequest(HttpServerExchange exchange)
Wrap request into
SPFormAuthenticationRequestWrapper. |
public static final AttachmentKey<SPFormAuthrenticationRequestUtil.SPFAMFormDataWrapper> FORM_DATA_ATTACHMENT_KEY
public static void store(byte[] buffer,
FormData formData,
HttpServerExchange exchange,
int contentLength)
buffer - formData - exchange - contentLength - public static byte[] getStoredBuffer(HttpServerExchange exchange)
exchange - public static int getStoredBufferLength(HttpServerExchange exchange)
exchange - public static HttpServletRequest wrapRequest(HttpServerExchange exchange)
SPFormAuthenticationRequestWrapper.exchange - Copyright © 2018 JBoss by Red Hat. All rights reserved.