# Uses of Class
org.opensaml.messaging.encoder.MessageEncodingException

Packages that use MessageEncodingException
Package
Description
org.opensaml.messaging.encoder
Interfaces and classes for encoding messages.
org.opensaml.messaging.encoder.httpclient
Interfaces and classes for encoding HTTP messages.
org.opensaml.messaging.encoder.servlet
Interfaces and classes for encoding messages to a `HttpServletResponse`.
org.opensaml.saml.saml1.binding.encoding.impl
SAML 1.x message encoders.
org.opensaml.saml.saml2.binding.encoding.impl
SAML 2.0 message encoders.
org.opensaml.soap.client.soap11.encoder.http.impl
SOAP 1.1 client message encoding support implementations.
org.opensaml.soap.soap11.encoder.http.impl
SOAP over HTTP 1.1 message encoder and handlers.

## Uses of MessageEncodingException in org.opensaml.messaging.encoder

Methods in org.opensaml.messaging.encoder that throw MessageEncodingException
Modifier and Type
Method
Description
`protected abstract void`
AbstractMessageEncoder.`doEncode()`
Performs the encoding logic.
`void`
AbstractMessageEncoder.`encode()`
Encode the `MessageContext` supplied via `MessageEncoder.setMessageContext(MessageContext)` to the sink.
`void`
MessageEncoder.`encode()`
Encode the `MessageContext` supplied via `MessageEncoder.setMessageContext(MessageContext)` to the sink.
`void`
AbstractMessageEncoder.`prepareContext()`
This method should prepare the message context by creating and populating any binding-specific data structures required in the MessageContext, prior to actually encoding.
`void`
MessageEncoder.`prepareContext()`
This method should prepare the message context by creating and populating any binding-specific data structures required in the MessageContext, prior to actually encoding.

## Uses of MessageEncodingException in org.opensaml.messaging.encoder.httpclient

Methods in org.opensaml.messaging.encoder.httpclient that throw MessageEncodingException
Modifier and Type
Method
Description
`void`
BaseHttpClientRequestXMLMessageEncoder.`encode()`
Encode the `MessageContext` supplied via `MessageEncoder.setMessageContext(MessageContext)` to the sink.
`protected Element`
BaseHttpClientRequestXMLMessageEncoder.`marshallMessage(XMLObject message)`
Helper method that marshalls the given message.

## Uses of MessageEncodingException in org.opensaml.messaging.encoder.servlet

Methods in org.opensaml.messaging.encoder.servlet that throw MessageEncodingException
Modifier and Type
Method
Description
`void`
BaseHttpServletResponseXMLMessageEncoder.`encode()`
Encode the `MessageContext` supplied via `MessageEncoder.setMessageContext(MessageContext)` to the sink.
`protected Element`
BaseHttpServletResponseXMLMessageEncoder.`marshallMessage(XMLObject message)`
Helper method that marshalls the given message.

## Uses of MessageEncodingException in org.opensaml.saml.saml1.binding.encoding.impl

Methods in org.opensaml.saml.saml1.binding.encoding.impl that throw MessageEncodingException
Modifier and Type
Method
Description
`protected void`
HTTPArtifactEncoder.`doEncode()`
Performs the encoding logic.
`protected void`
HTTPPostEncoder.`doEncode()`
Performs the encoding logic.
`protected URI`
BaseSAML1MessageEncoder.`getEndpointURL(MessageContext messageContext)`
Gets the response URL from the message context.
`protected void`
HTTPPostEncoder.`postEncode(MessageContext messageContext, String endpointURL)`
Base64 and POST encodes the outbound message and writes it to the outbound transport.

## Uses of MessageEncodingException in org.opensaml.saml.saml2.binding.encoding.impl

Methods in org.opensaml.saml.saml2.binding.encoding.impl that throw MessageEncodingException
Modifier and Type
Method
Description
`protected SAML2Artifact`
HTTPArtifactEncoder.`buildArtifact(MessageContext messageContext)`
Builds the SAML 2 artifact for the outgoing message.
`protected String`
HTTPPostSimpleSignEncoder.`buildFormDataToSign(org.apache.velocity.VelocityContext velocityContext, MessageContext messageContext, String sigAlgURI)`
Build the form control data string over which the signature is computed.
`protected String`
HTTPPostSimpleSignEncoder.`buildKeyInfo(Credential signingCredential, KeyInfoGenerator kiGenerator)`
Build the `KeyInfo` from the signing credential.
`protected String`
HTTPRedirectDeflateEncoder.`buildRedirectURL(MessageContext messageContext, String endpoint, String message)`
Builds the URL to redirect the client to.
`protected String`
HTTPRedirectDeflateEncoder.`deflateAndBase64Encode(SAMLObject message)`
DEFLATE (RFC1951) compresses the given SAML message.
`protected void`
HTTPArtifactEncoder.`doEncode()`
Performs the encoding logic.
`protected void`
HTTPPostEncoder.`doEncode()`
Performs the encoding logic.
`protected void`
HTTPRedirectDeflateEncoder.`doEncode()`
Performs the encoding logic.
`protected String`
HTTPPostSimpleSignEncoder.`generateSignature(Credential signingCredential, String algorithmURI, String formData)`
Generates the signature over the string of concatenated form control data as indicated by the SimpleSign spec.
`protected String`
HTTPRedirectDeflateEncoder.`generateSignature(Credential signingCredential, String algorithmURI, String queryString)`
Generates the signature over the query string.
`protected void`
HTTPArtifactEncoder.`getEncode()`
Performs HTTP GET based encoding.
`protected URI`
BaseSAML2MessageEncoder.`getEndpointURL(MessageContext messageContext)`
Gets the response URL from the message context.
`protected String`
HTTPPostSimpleSignEncoder.`getSignatureAlgorithmURI(SignatureSigningParameters signingParameters)`
Gets the signature algorithm URI to use.
`protected String`
HTTPRedirectDeflateEncoder.`getSignatureAlgorithmURI(SignatureSigningParameters signingParameters)`
Gets the signature algorithm URI to use.
`protected void`
HTTPPostEncoder.`populateVelocityContext(org.apache.velocity.VelocityContext velocityContext, MessageContext messageContext, String endpointURL)`
Populate the Velocity context instance which will be used to render the POST body.
`protected void`
HTTPPostSimpleSignEncoder.`populateVelocityContext(org.apache.velocity.VelocityContext velocityContext, MessageContext messageContext, String endpointURL)`
Populate the Velocity context instance which will be used to render the POST body.
`protected void`
HTTPArtifactEncoder.`postEncode()`
Performs HTTP POST based encoding.
`protected void`
HTTPPostEncoder.`postEncode(MessageContext messageContext, String endpointURL)`
Base64 and POST encodes the outbound message and writes it to the outbound transport.

## Uses of MessageEncodingException in org.opensaml.soap.client.soap11.encoder.http.impl

Methods in org.opensaml.soap.client.soap11.encoder.http.impl that throw MessageEncodingException
Modifier and Type
Method
Description
`protected org.apache.hc.core5.http.HttpEntity`
HttpClientRequestSOAP11Encoder.`createRequestEntity(Envelope message, Charset charset)`
Create the request entity that makes up the POST message body.
`protected void`
HttpClientRequestSOAP11Encoder.`doEncode()`
Performs the encoding logic.
`void`
HttpClientRequestSOAP11Encoder.`prepareContext()`
This method should prepare the message context by creating and populating any binding-specific data structures required in the MessageContext, prior to actually encoding.
`protected void`
HttpClientRequestSOAP11Encoder.`prepareHttpRequest()`
This implementation performs the following actions on the context's `ClassicHttpRequest`:

## Uses of MessageEncodingException in org.opensaml.soap.soap11.encoder.http.impl

Methods in org.opensaml.soap.soap11.encoder.http.impl that throw MessageEncodingException
Modifier and Type
Method
Description
`protected void`
HTTPSOAP11Encoder.`doEncode()`
Performs the encoding logic.
`void`
HTTPSOAP11Encoder.`prepareContext()`
This method should prepare the message context by creating and populating any binding-specific data structures required in the MessageContext, prior to actually encoding.
`protected HttpServletResponse`
HTTPSOAP11Encoder.`prepareHttpServletResponse()`
This implementation performs the following actions on the context's `HttpServletResponse`: