org.bsf.remoting.http
Class HttpServiceFactory
java.lang.Object
|
+--org.bsf.remoting.http.HttpServiceFactory
- All Implemented Interfaces:
- ServiceFactory
- public class HttpServiceFactory
- extends java.lang.Object
- implements ServiceFactory
This implementation of ServiceFactory makes returns to the client DynamicProxies to
encapsulate the client calls in http protocol. The client sees its "normal" remote interface.
Method Summary |
java.lang.Object |
getService(EJBDefinition p_service)
Uses the ejbDefinition to return a DynamicProxy that will present the
"good face" to the client. |
void |
setHost(java.lang.String host)
|
void |
setLogin(java.lang.String login)
|
void |
setPassword(java.lang.String password)
|
void |
setPort(int port)
|
void |
setProtocol(java.lang.String protocole)
|
void |
setServerContext(java.lang.String context)
Set the context used at deployment time. |
void |
setServerFile(java.lang.String file)
Deprecated. Use setServerContext() instead. |
void |
setThreadCount(int count)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_serviceCache
private static java.util.Map _serviceCache
HttpServiceFactory
public HttpServiceFactory()
HttpServiceFactory
public HttpServiceFactory(java.lang.String host,
int port,
java.lang.String serverContext)
HttpServiceFactory
public HttpServiceFactory(java.lang.String protocole,
java.lang.String host,
int port,
java.lang.String serverContext)
getService
public java.lang.Object getService(EJBDefinition p_service)
- Uses the ejbDefinition to return a DynamicProxy that will present the
"good face" to the client.
- Specified by:
getService
in interface ServiceFactory
- Parameters:
p_service
-
- Returns:
- The reference on the service
setPort
public void setPort(int port)
setHost
public void setHost(java.lang.String host)
setProtocol
public void setProtocol(java.lang.String protocole)
setServerFile
public void setServerFile(java.lang.String file)
- Deprecated. Use setServerContext() instead.
- Parameters:
file
-
setServerContext
public void setServerContext(java.lang.String context)
- Set the context used at deployment time. For instance if the packaging of
the remoting war inside of the ear use the context myApp, you should call
setContext("myApp") on the HttpServiceFactory to reach the server.
- Parameters:
context
-
setThreadCount
public void setThreadCount(int count)
setLogin
public void setLogin(java.lang.String login)
setPassword
public void setPassword(java.lang.String password)