|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.technicalconnector.ws.domain.GenericRequest
public final class GenericRequest
This class contains the generic domain object for manipulating generic requests;
Constructor Summary | |
---|---|
GenericRequest()
|
Method Summary | |
---|---|
GenericRequest |
addDataHandler(String id,
byte[] byteArray)
Wrapping a byte[] in a ByteArrayDatasource as DataHandler |
GenericRequest |
addDataHandler(String id,
DataHandler dataHandler)
|
List<Handler> |
getAfterSecurityHandlerChain()
Deprecated. method setHandlerChain should be used |
List<Handler> |
getBeforeSecurityHandlerChain()
Deprecated. method setHandlerChain should be used |
Map<String,DataHandler> |
getDataHandlerMap()
|
Handler<?>[] |
getHandlerchain()
Obtaining the current handler chain |
Document |
getPayload()
|
Map<String,Object> |
getRequestMap()
|
List<Handler> |
getSecurityHandlerChain()
Deprecated. method setHandlerChain should be used |
boolean |
isXopEnabled()
|
void |
setCertificateSecured()
Deprecated. |
GenericRequest |
setCertificateSecured(X509Certificate certificate,
PrivateKey privateKey)
|
GenericRequest |
setCredential(Credential cred,
TokenType sec)
This method will set the security handler based on the credential |
GenericRequest |
setCredentialFromSession(TokenType sec)
This method will use the session to detirming the credential to use. |
GenericRequest |
setDefaultHandlerChain()
This method will sets the DefaultHandlerChain before and after the security layer as specified in the configuration. |
GenericRequest |
setEndpoint(String endpoint)
|
GenericRequest |
setHandlerChain(HandlerChain handlers)
|
GenericRequest |
setPayload(Document payload)
|
GenericRequest |
setPayload(Document payload,
GenericFeature... features)
|
GenericRequest |
setPayload(Object payload)
Setting the payload with a classes annotated with XmlRootElement are allowed. |
GenericRequest |
setPayload(Object payload,
boolean xop)
Deprecated. |
GenericRequest |
setPayload(Object payload,
GenericFeature... features)
|
GenericRequest |
setPayload(String payload)
The payload to set as String value |
void |
setSamlSecured()
Deprecated. |
GenericRequest |
setSamlSecured(Element assertion,
Credential hok)
This method will uses the assertion and the credential for setting the SAML security |
void |
setSamlSecured(SAMLToken token)
Deprecated. |
GenericRequest |
setSoapAction(String soapAction)
|
GenericRequest |
setWSAddressing(WsAddressingHeader header)
This method will set the WSAddressing header as specified in the V200508 specification |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericRequest()
Method Detail |
---|
public GenericRequest setEndpoint(String endpoint)
endpoint
- the endpoint to setpublic GenericRequest setPayload(Document payload)
payload
- the payload to set as Document
public GenericRequest setPayload(Document payload, GenericFeature... features)
public Document getPayload()
public Map<String,DataHandler> getDataHandlerMap()
public GenericRequest setPayload(String payload) throws TechnicalConnectorException
Note: only well-formed xml document are allowed.
TechnicalConnectorException
public GenericRequest setPayload(Object payload)
XmlRootElement
are allowed.
Note:XML-binary Optimized Packaging (XOP) is disabled.
@Deprecated public GenericRequest setPayload(Object payload, boolean xop)
XmlRootElement
are allowed.
xop
- enable/disable XML-binary Optimized Packaging (XOP) only for XmlRootElement
public GenericRequest setPayload(Object payload, GenericFeature... features)
public GenericRequest setSoapAction(String soapAction) throws TechnicalConnectorException
soapAction
- the soapAction to set
TechnicalConnectorException
public Map<String,Object> getRequestMap()
public GenericRequest setWSAddressing(WsAddressingHeader header) throws TechnicalConnectorException
header
-
TechnicalConnectorException
@Deprecated public void setCertificateSecured() throws TechnicalConnectorException
TechnicalConnectorException
public GenericRequest setCertificateSecured(X509Certificate certificate, PrivateKey privateKey) throws TechnicalConnectorException
certificate
- privateKey
-
TechnicalConnectorException
@Deprecated public void setSamlSecured() throws TechnicalConnectorException
TechnicalConnectorException
public GenericRequest setSamlSecured(Element assertion, Credential hok) throws TechnicalConnectorException
assertion
- hok
-
TechnicalConnectorException
@Deprecated public void setSamlSecured(SAMLToken token) throws TechnicalConnectorException
token
-
TechnicalConnectorException
public GenericRequest setCredential(Credential cred, TokenType sec) throws TechnicalConnectorException
cred
-
TechnicalConnectorException
public GenericRequest setCredentialFromSession(TokenType sec) throws TechnicalConnectorException
sec
-
TechnicalConnectorException
public GenericRequest setDefaultHandlerChain() throws TechnicalConnectorException
TechnicalConnectorException
public GenericRequest setHandlerChain(HandlerChain handlers)
@Deprecated public List<Handler> getAfterSecurityHandlerChain()
@Deprecated public List<Handler> getBeforeSecurityHandlerChain()
@Deprecated public List<Handler> getSecurityHandlerChain()
public Handler<?>[] getHandlerchain()
public GenericRequest addDataHandler(String id, DataHandler dataHandler)
public boolean isXopEnabled()
public GenericRequest addDataHandler(String id, byte[] byteArray)
ByteArrayDatasource
as DataHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |