Package org.wildfly.httpclient.ejb
Class HttpClientProvider
- java.lang.Object
-
- org.wildfly.httpclient.ejb.HttpClientProvider
-
- All Implemented Interfaces:
EJBTransportProvider
public class HttpClientProvider extends Object implements EJBTransportProvider
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description HttpClientProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(EJBReceiverContext receiverContext)EJBReceivergetReceiver(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 Detail
-
HTTP
public static final String HTTP
- See Also:
- Constant Field Values
-
HTTPS
public static final String HTTPS
- See Also:
- Constant Field Values
-
-
Method Detail
-
notifyRegistered
public void notifyRegistered(EJBReceiverContext receiverContext)
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
public boolean supportsProtocol(String uriScheme)
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
public void close(EJBReceiverContext receiverContext) throws Exception
- Specified by:
closein interfaceEJBTransportProvider- Throws:
Exception
-
-