Class Soap.SoapMessageBuilder
- java.lang.Object
- 
- org.keycloak.protocol.saml.profile.util.Soap.SoapMessageBuilder
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.xml.soap.SOAPHeaderElementaddHeader(String name, String prefix)Soap.SoapMessageBuilderaddMimeHeader(String name, String value)Soap.SoapMessageBuilderaddNamespace(String prefix, String ns)Soap.SoapMessageBuilderaddToBody(Document document)javax.ws.rs.core.Responsebuild()org.apache.http.client.methods.HttpPostbuildHttpPost(URI uri)Build method for testing, generates an appache httpcomponents HttpPostjavax.xml.soap.SOAPMessagecall(String url)Deprecated.Usecall(String,KeycloakSession)to use SimpleHttp configurationjavax.xml.soap.SOAPMessagecall(String url, KeycloakSession session)Performs a synchronous call, sending the current message to the given url.javax.xml.soap.NamecreateName(String name)byte[]getBytes()javax.xml.soap.SOAPMessagegetMessage()
 
- 
- 
- 
Method Detail- 
addToBodypublic Soap.SoapMessageBuilder addToBody(Document document) 
 - 
addNamespacepublic Soap.SoapMessageBuilder addNamespace(String prefix, String ns) 
 - 
addMimeHeaderpublic Soap.SoapMessageBuilder addMimeHeader(String name, String value) 
 - 
createNamepublic javax.xml.soap.Name createName(String name) 
 - 
getBytespublic byte[] getBytes() 
 - 
buildpublic javax.ws.rs.core.Response build() 
 - 
buildHttpPostpublic org.apache.http.client.methods.HttpPost buildHttpPost(URI uri) Build method for testing, generates an appache httpcomponents HttpPost- Parameters:
- uri- the URI to which to POST the soap message
- Returns:
- an HttpPost containing the SOAP message
 
 - 
call@Deprecated public javax.xml.soap.SOAPMessage call(String url) throws javax.xml.soap.SOAPException Deprecated.Usecall(String,KeycloakSession)to use SimpleHttp configurationPerforms a synchronous call, sending the current message to the given url- Parameters:
- url- a SOAP endpoint url
- Returns:
- the SOAPMessage returned by the contacted SOAP server
- Throws:
- javax.xml.soap.SOAPException- Raised if there's a problem performing the SOAP call
 
 - 
callpublic javax.xml.soap.SOAPMessage call(String url, KeycloakSession session) throws javax.xml.soap.SOAPException Performs a synchronous call, sending the current message to the given url. SimpleHttp is retrieved using the session parameter.- Parameters:
- url- The SOAP endpoint URL to connect
- session- The session to use to locate the SimpleHttp sender
- Returns:
- the SOAPMessage returned by the contacted SOAP server
- Throws:
- javax.xml.soap.SOAPException- Raised if there's a problem performing the SOAP call
 
 - 
getMessagepublic javax.xml.soap.SOAPMessage getMessage() 
 
- 
 
-