public class PostBindingUtil extends Object
Constructor and Description |
---|
PostBindingUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
base64Decode(String encodedString)
Apply base64 decoding on the message and return the byte array
|
static InputStream |
base64DecodeAsStream(String encodedString)
Apply base64 decoding on the message and return the stream
|
static String |
base64Encode(String stringToEncode)
Apply base64 encoding on the message
|
static void |
sendPost(DestinationInfoHolder holder,
HttpServletResponse response,
boolean request)
Send the response to the redirected destination while adding the character encoding of "UTF-8" as well as adding
headers
for cache-control and Pragma
|
public static String base64Encode(String stringToEncode) throws IOException
stringToEncode
- IOException
public static byte[] base64Decode(String encodedString)
encodedString
- public static InputStream base64DecodeAsStream(String encodedString)
encodedString
- public static void sendPost(DestinationInfoHolder holder, HttpServletResponse response, boolean request) throws IOException
destination
- Destination URI where the response needs to redirectresponse
- HttpServletResponseIOException
Copyright © 2019 JBoss by Red Hat. All rights reserved.