Package org.wildfly.httpclient.ejb
Class HttpClientProvider
java.lang.Object
org.wildfly.httpclient.ejb.HttpClientProvider
- All Implemented Interfaces:
EJBTransportProvider
- Author:
- Stuart Douglas
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(EJBReceiverContext receiverContext) getReceiver(EJBReceiverContext ejbReceiverContext, String s) Get an Enterprise Bean receiver for the protocol identified by the given URI scheme.voidnotifyRegistered(EJBReceiverContext receiverContext) Notify the provider instance that it has been registered with the given client context.booleansupportsProtocol(String uriScheme) Determine whether this transport provider supports the protocol identified by the given URI scheme.
-
Field Details
-
HTTP
- See Also:
-
HTTPS
- See Also:
-
PROTOCOLS
-
-
Constructor Details
-
HttpClientProvider
public HttpClientProvider()
-
-
Method Details
-
notifyRegistered
Description copied from interface:EJBTransportProviderNotify the provider instance that it has been registered with the given client context.- Specified by:
notifyRegisteredin interfaceEJBTransportProvider- Parameters:
receiverContext- the Enterprise Beans receiver context (notnull)
-
supportsProtocol
Description copied from interface:EJBTransportProviderDetermine whether this transport provider supports the protocol identified by the given URI scheme.- Specified by:
supportsProtocolin interfaceEJBTransportProvider- Parameters:
uriScheme- the URI scheme- Returns:
trueif this provider supports the protocol,falseotherwise
-
getReceiver
public EJBReceiver getReceiver(EJBReceiverContext ejbReceiverContext, String s) throws IllegalArgumentException Description copied from interface:EJBTransportProviderGet an Enterprise Bean receiver for the protocol identified by the given URI scheme.- Specified by:
getReceiverin interfaceEJBTransportProvider- Parameters:
ejbReceiverContext- the receiver contexts- the URI scheme- Returns:
- the non-
nullEnterprise Beans receiver - Throws:
IllegalArgumentException- if the protocol is not supported
-
close
- Specified by:
closein interfaceEJBTransportProvider- Throws:
Exception
-