it.imolinfo.jbi4ejb.jbi.endpoint
Class Jbi4EjbEndpoint

java.lang.Object
  extended by it.imolinfo.jbi4ejb.jbi.endpoint.Jbi4EjbEndpoint
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Jbi4EjbProviderEndpoint

public abstract class Jbi4EjbEndpoint
extends java.lang.Object
implements java.io.Serializable

Generic Jbi4Ejb endpoint.

Author:
Marco Piraccini
See Also:
Serialized Form

Field Summary
static int RUNNING
          The Constant RUNNING.
static int SHUTDOWN
          The Constant SHUTDOWN.
static int STOPPED
          The Constant STOPPED.
 
Constructor Summary
Jbi4EjbEndpoint(javax.xml.namespace.QName serviceName, java.lang.String endpointName)
          Instantiates a new jbi4 ejb endpoint.
 
Method Summary
 boolean equals(java.lang.Object obj)
          the endpoints are equals if the servicename and the endpointname is the same.
 javax.wsdl.Definition getDefinition()
          Gets the definition.
 java.lang.String getEndpointName()
          Gets the endpoint name.
 com.sun.jbi.eManager.provider.EndpointStatus getEndpointStatus()
          Gets the endpoint status.
 java.io.File getEndpointWSDL()
          Gets the endpoint WSDL.
 ExchangeProcessor getExchangeProcessor()
          Gets the exchange processor.
 org.w3c.dom.Document getServiceDescription()
          Gets the service description.
 javax.jbi.servicedesc.ServiceEndpoint getServiceEndpoint()
          Gets the service endpoint.
 javax.xml.namespace.QName getServiceName()
          Gets the service name.
 int getState()
          Gets the state.
 Jbi4EjbSUManager getSuManager()
          Gets the su manager.
 java.lang.String getSuName()
          Gets the su name.
 java.lang.String getUniqueName()
          Utility method to create the unique names with explicit arguments.
 int hashCode()
          hashcode implementation.
abstract  void registerService()
          Register service.
 void setDefinition(javax.wsdl.Definition definition)
          Sets the definition.
 void setEndpointStatus(com.sun.jbi.eManager.provider.EndpointStatus endpointStatus)
          Sets the endpoint status.
 void setEndpointWSDL(java.io.File endpointWSDL)
          Sets the endpoint WSDL.
 void setExchangeProcessor(ExchangeProcessor exchangeProcessor)
          Sets the exchange processor.
 void setServiceDescription(org.w3c.dom.Document serviceDescription)
          Sets the service description.
 void setServiceEndpoint(javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint)
          Sets the service endpoint.
 void setState(int state)
          Sets the state.
 void setSuManager(Jbi4EjbSUManager suManager)
          Sets the su manager.
 void setSuName(java.lang.String suName)
          Sets the su name.
abstract  void unregisterService()
          Unregister service.
abstract  void validate()
          Validate.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHUTDOWN

public static final int SHUTDOWN
The Constant SHUTDOWN.

See Also:
Constant Field Values

STOPPED

public static final int STOPPED
The Constant STOPPED.

See Also:
Constant Field Values

RUNNING

public static final int RUNNING
The Constant RUNNING.

See Also:
Constant Field Values
Constructor Detail

Jbi4EjbEndpoint

public Jbi4EjbEndpoint(javax.xml.namespace.QName serviceName,
                       java.lang.String endpointName)
Instantiates a new jbi4 ejb endpoint.

Parameters:
serviceName - the service name
endpointName - the endpoint name
Method Detail

getUniqueName

public java.lang.String getUniqueName()
Utility method to create the unique names with explicit arguments.

Returns:
the unoque name

getServiceName

public javax.xml.namespace.QName getServiceName()
Gets the service name.

Returns:
the service name

getEndpointName

public java.lang.String getEndpointName()
Gets the endpoint name.

Returns:
the endpoint name

getDefinition

public javax.wsdl.Definition getDefinition()
Gets the definition.

Returns:
the definition

setDefinition

public void setDefinition(javax.wsdl.Definition definition)
Sets the definition.

Parameters:
definition - the new definition

getState

public int getState()
Gets the state.

Returns:
the state

setState

public void setState(int state)
Sets the state.

Parameters:
state - the new state

getEndpointStatus

public com.sun.jbi.eManager.provider.EndpointStatus getEndpointStatus()
Gets the endpoint status.

Returns:
the endpoint status

setEndpointStatus

public void setEndpointStatus(com.sun.jbi.eManager.provider.EndpointStatus endpointStatus)
Sets the endpoint status.

Parameters:
endpointStatus - the new endpoint status

getServiceEndpoint

public javax.jbi.servicedesc.ServiceEndpoint getServiceEndpoint()
Gets the service endpoint.

Returns:
the service endpoint

setServiceEndpoint

public void setServiceEndpoint(javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint)
Sets the service endpoint.

Parameters:
serviceEndpoint - the new service endpoint

getServiceDescription

public org.w3c.dom.Document getServiceDescription()
Gets the service description.

Returns:
the service description

setServiceDescription

public void setServiceDescription(org.w3c.dom.Document serviceDescription)
Sets the service description.

Parameters:
serviceDescription - the new service description

getSuName

public java.lang.String getSuName()
Gets the su name.

Returns:
the su name

setSuName

public void setSuName(java.lang.String suName)
Sets the su name.

Parameters:
suName - the new su name

getSuManager

public Jbi4EjbSUManager getSuManager()
Gets the su manager.

Returns:
the su manager

setSuManager

public void setSuManager(Jbi4EjbSUManager suManager)
Sets the su manager.

Parameters:
suManager - the new su manager

getExchangeProcessor

public ExchangeProcessor getExchangeProcessor()
Gets the exchange processor.

Returns:
the exchange processor

setExchangeProcessor

public void setExchangeProcessor(ExchangeProcessor exchangeProcessor)
Sets the exchange processor.

Parameters:
exchangeProcessor - the new exchange processor

getEndpointWSDL

public java.io.File getEndpointWSDL()
Gets the endpoint WSDL.

Returns:
the endpoint WSDL

setEndpointWSDL

public void setEndpointWSDL(java.io.File endpointWSDL)
Sets the endpoint WSDL.

Parameters:
endpointWSDL - the new endpoint WSDL

equals

public boolean equals(java.lang.Object obj)
the endpoints are equals if the servicename and the endpointname is the same.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to compare
Returns:
true if the objects are equals
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
hashcode implementation.

Overrides:
hashCode in class java.lang.Object
Returns:
the object hashcode
See Also:
Object.hashCode()

registerService

public abstract void registerService()
                              throws Jbi4EjbException
Register service.

Throws:
Jbi4EjbException - if something go wrong

unregisterService

public abstract void unregisterService()
                                throws Jbi4EjbException
Unregister service.

Throws:
Jbi4EjbException - if something go wrong

validate

public abstract void validate()
                       throws Jbi4EjbException
Validate.

Throws:
Jbi4EjbException - if something go wrong


Copyright © 2007-2008 Imola Informatica. All Rights Reserved.