|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.web.RequestHandler | +--com.bea.adapter.web.AbstractDesignTimeRequestHandler
Provides an implementation for common actions in a design time Web application for deploying application views and connection factories.
Field Summary | |
static java.lang.String |
CONNECTION_PROPERTY
|
static int |
iDEPLOYED
|
static int |
iINITIALIZED
|
static int |
iREADY_TO_ADD
|
static int |
iREADY_TO_DEPLOY
|
static int |
iUNINITIALIZED
These static final ints are used to indicate the state of an application view descriptor. |
protected javax.resource.cci.ConnectionFactory |
m_connectionFactory
|
protected javax.resource.cci.Connection |
m_proxy
|
static java.lang.String |
QUALIFIED_APP_VIEW_NAME
|
protected javax.resource.cci.Connection |
t_connection
|
protected DesignTimeHelper |
t_dtHelper
|
protected javax.naming.InitialContext |
t_initialContext
|
Constructor Summary | |
AbstractDesignTimeRequestHandler()
Initializes an initial context to ensure we are running in a valid environment. |
Method Summary | |
ActionResult |
addevent(javax.servlet.http.HttpServletRequest request)
Adds an event to the application view. |
void |
addEventSchemaToRepository(IApplicationViewDescriptor avd,
IEventDescriptor ed,
IDocumentDefinition eventDef)
Adds the schema for an event to the repository. |
void |
addEventSchemaToRepository(IEventDescriptor ed,
IDocumentDefinition eventDef)
Adds the schema for an event to the repository. |
protected IDocumentDescriptor |
addOrUpdateSchema(SchemaManager schemaManager,
QualifiedName schemaQName,
IDocumentDefinition def)
|
QualifiedName |
addSchemaToRepository(java.lang.String strKey,
SOMSchema schema)
Deprecated. This method should not be used going forward as it does not take into account updating existing schemas or adding both request and response schemas to the repository in one logical unit of work. The preferred approach is to use the addServiceSchemasToRepository
or addEventSchemaToRepository methods directly. |
ActionResult |
addservc(javax.servlet.http.HttpServletRequest request)
Adds a service to the application view...This method corresponds to a JSP page named addservc. |
void |
addServiceSchemasToRepository(IApplicationViewDescriptor avd,
IServiceDescriptor sd,
IDocumentDefinition requestDef,
IDocumentDefinition responseDef)
Adds the request and response schemas for a service to the WLI repository. |
void |
addServiceSchemasToRepository(IServiceDescriptor sd,
IDocumentDefinition requestDef,
IDocumentDefinition responseDef)
Adds the request and response schemas for a service to the WLI repository. |
ActionResult |
appvwadmin(javax.servlet.http.HttpServletRequest request)
This method is used if the 'save' button is clicked on the appvwadmin.jsp. |
ActionResult |
chmod(javax.servlet.http.HttpServletRequest request)
Adds security to an application view. |
protected void |
closeConnection()
This method safely (i.e. |
ActionResult |
confconn(javax.servlet.http.HttpServletRequest request)
Configures a connection to the underlying EIS. |
protected javax.resource.spi.ManagedConnectionFactory |
configureManagedConnectionFactory()
Instantiates and configures an instance of an adapter specific class that implements the javax.resource.spi.ManagedConnectionFactory
interface. |
IApplicationViewDescriptor |
createApplicationViewDescriptor(java.lang.String appViewName)
This convenience method gets an application view descriptor from the deployManager for a given application view. |
protected IConnectionFactoryDescriptor |
createConnectionFactoryDescriptor(QualifiedName appViewName,
java.lang.String logicalName)
This protected method creates a connection factory descriptor object that implements the IConnectionFactoryDescriptor interface. |
protected void |
debugDocument(java.lang.String strMessage,
ILogger logger,
IDocument doc)
|
ActionResult |
depappvw(javax.servlet.http.HttpServletRequest request)
Deploys a new application view onto the WLAI server; this method performs the processing of the "depappvw" action. |
void |
editEventDescriptor(ActionResult result,
IEventDescriptor event,
javax.servlet.http.HttpServletRequest request)
This method is called by the edtservc response method. |
void |
editServiceDescriptor(ActionResult result,
IServiceDescriptor service,
javax.servlet.http.HttpServletRequest request)
This method is called by the edtservc response method. |
ActionResult |
edtappvw(javax.servlet.http.HttpServletRequest request)
This method handles the edit application view action. |
ActionResult |
edtevent(javax.servlet.http.HttpServletRequest request)
Edits an Event. |
ActionResult |
edtservc(javax.servlet.http.HttpServletRequest request)
Edits a service. |
void |
finalize()
This method is used to assure that the EIS connection (a javax.resource.cci.Connection) is closed properly. |
protected abstract java.lang.String |
getAdapterLogicalName()
An abstract method which must be implemented by the adapter developer to return the AdapterLogicalName of their adapter |
ApplicationView |
getApplicationView(java.lang.String strFullyQualifiedName)
This method is the accessor for the current application view. |
IApplicationViewDescriptor |
getApplicationViewDescriptor()
This method returns the application view descriptor member of the current app view. |
IApplicationViewDescriptor |
getApplicationViewDescriptor(java.lang.String strName)
|
int |
getApplicationViewDescriptorState()
Returns the current state of the application view descriptor; used by the classes in the ADK Designtime Framework needing the state for conditional display logic. |
ApplicationViewManager |
getApplicationViewManager()
This is the accessor method for the ApplicationViewManager, an external interface to the ApplicationViewManager EJB |
protected QualifiedName |
getAppViewName(javax.servlet.http.HttpServletRequest request)
|
javax.resource.cci.Connection |
getConnection()
This method returns the javax.resource.cci.Connection object that is a member variable of this class. |
javax.resource.cci.ConnectionFactory |
getConnectionFactory()
This method returns the javax.resource.cci.ConnectionFactory object that is a member variable of this class. |
protected java.lang.String |
getConnectionFactoryDeploymentName(QualifiedName appViewName)
|
protected java.lang.String |
getConnectionFactoryJNDIName(QualifiedName qualifiedAppViewName)
This method retrieves the JNDI name for the connection factory. |
ConnectionFactoryManager |
getConnectionFactoryManager()
|
protected java.lang.String |
getConnectionFactoryObjectName(QualifiedName appViewName)
|
javax.resource.cci.Connection |
getConnectionFromAppView(ApplicationView av)
This method is the accessor for a cci.Connection object of the application view argument. |
DeployManager |
getDeployManager()
|
java.lang.String |
getEventSchemaName(IEventDescriptor ed)
Convenience method to retrieve the event schema's name. |
protected javax.naming.InitialContext |
getInitialContext()
Provides an initial JNDI context |
javax.resource.cci.InteractionSpec |
getInteractionSpecForService(ApplicationView av,
java.lang.String strService)
Deprecated. - this method should not be used because binding the InteractionSpec into JNDI can lead to class loading issues. Instead, you should get the IServiceDescriptor from the IApplicationViewDescriptor to get properties for a service. |
protected abstract java.lang.Class |
getManagedConnectionFactoryClass()
An abstract method which must be implemented by the adapter developer to return the ManagedConnectionFactory class of their adapter. |
NamespaceManager |
getNamespaceManager()
This is the accessor method for the NamespaceManager, an external interface to the NamespaceManager EJB |
protected java.lang.String |
getNextAction(java.lang.String strAction)
A no-op method (returns null by default) that adapter developers can override to alter the screen flow. |
QualifiedName |
getQualifiedName(java.lang.String strQualifiedName)
|
java.lang.String |
getRequestSchemaName(IServiceDescriptor sd)
Convenience method to retrieve the service request schema's name. |
java.lang.String |
getResponseSchemaName(IServiceDescriptor sd)
Convenience method to retrieve the service response schema's name. |
SchemaManager |
getSchemaManager()
This is the accessor method for the SchemaManager, an external interface to the SchemaManager EJB |
protected abstract void |
initEventDescriptor(ActionResult result,
IEventDescriptor ed,
javax.servlet.http.HttpServletRequest request)
Initializes an event descriptor. |
protected abstract void |
initServiceDescriptor(ActionResult result,
IServiceDescriptor sd,
javax.servlet.http.HttpServletRequest request)
Initializes a service descriptor which involves creating the request and response schemas for the service. |
void |
loadEventDescriptorProperties(javax.servlet.http.HttpServletRequest request)
Maps properties to fields on the html page. |
void |
loadServiceDescriptorProperties(javax.servlet.http.HttpServletRequest request)
Maps properties to fields on the html page. |
ActionResult |
redepappvw(javax.servlet.http.HttpServletRequest request)
Re-deploy a previously deployed application view directly from the appvwsum page. |
ActionResult |
remappvw(javax.servlet.http.HttpServletRequest request)
This method is used to DELETE an application view from the repository. |
ActionResult |
removeprincipal(javax.servlet.http.HttpServletRequest request)
This method is used to remove a principle from a security list. |
int |
resetApplicationViewDescriptor(java.lang.String strQualifiedAppViewName)
Resets our internal representation of an application view to arg if needed |
protected void |
savePropertiesFromFactory(javax.resource.spi.ManagedConnectionFactory factory)
This method uses java reflection to save the appropriate properties from the ManagedConnectionFactory. |
void |
setApplicationViewDescriptor(IApplicationViewDescriptor avd)
This method allows you to set the member variable m_avd by passing in an IApplicationViewDescriptor. |
void |
setLogContextName(java.lang.String strLogContextName)
Overrides parent's method to append .DesignTime onto the log context. |
boolean |
supportsEditableEvents()
Used by the designtime web frame work to determine if an adapter supports editing of events. |
boolean |
supportsEditableServices()
Used by the designtime web frame work to determine if an adapter supports editing of services. |
boolean |
supportsEvents()
Used by the designtime web frame work to determine if an adapter supports events. |
boolean |
supportsEventTest()
Used by the designtime web frame work to determine if an adapter supports the testing of events. |
boolean |
supportsServices()
Used by the designtime web frame work to determine if an adapter supports services. |
boolean |
supportsServiceTest()
Used by the designtime web frame work to determine if an adapter supports the testing of services. |
ActionResult |
undepappvw(javax.servlet.http.HttpServletRequest request)
This method is used to undeploy an application view from the server, yet leave it in the repository for future editing or deployment. |
void |
updateSchemaInRepository(java.lang.String strSchemaName,
SOMSchema schema)
Deprecated. This method should not be used going forward. The preferred approach is to use the addServiceSchemasToRepository
or addEventSchemaToRepository methods directly. |
protected javax.resource.spi.ManagedConnectionFactory |
validateConnectionParameters()
Verifies that the user supplied connection paramters are sufficient to configure an SPI ManagedConnectionFactory instance to open a connection to the underlying EIS. |
Methods inherited from class com.bea.web.RequestHandler |
clear,
containsField,
debug,
get,
getAdditionalExceptionMessages,
getContent,
getContent,
getContent,
getFormFieldPair,
getLogConfigFile,
getLogContext,
getLogger,
getMessageBundleBase,
getResourceBundle,
getUserAgent,
getUserName,
init,
read,
remove,
set,
setLocale,
setLogConfigFile,
setMessageBundleBase,
setUserAgent,
setUserName,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String QUALIFIED_APP_VIEW_NAME
public static final java.lang.String CONNECTION_PROPERTY
public static final int iUNINITIALIZED
public static final int iINITIALIZED
public static final int iREADY_TO_ADD
public static final int iREADY_TO_DEPLOY
public static final int iDEPLOYED
protected transient javax.resource.cci.Connection m_proxy
protected transient javax.resource.cci.Connection t_connection
protected javax.resource.cci.ConnectionFactory m_connectionFactory
protected transient DesignTimeHelper t_dtHelper
protected transient javax.naming.InitialContext t_initialContext
Constructor Detail |
public AbstractDesignTimeRequestHandler() throws javax.naming.NamingException
Method Detail |
public void setLogContextName(java.lang.String strLogContextName)
protected javax.naming.InitialContext getInitialContext() throws javax.naming.NamingException
public ApplicationViewManager getApplicationViewManager() throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException
public ConnectionFactoryManager getConnectionFactoryManager() throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException
public NamespaceManager getNamespaceManager() throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException, NamespaceException
public SchemaManager getSchemaManager() throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException
public DeployManager getDeployManager() throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException
public ApplicationView getApplicationView(java.lang.String strFullyQualifiedName) throws java.lang.Exception
strFullyQualifiedName
- is the qualified name of the application view.public javax.resource.cci.Connection getConnectionFromAppView(ApplicationView av) throws java.lang.Exception
av
- is an ApplicationViewpublic javax.resource.cci.InteractionSpec getInteractionSpecForService(ApplicationView av, java.lang.String strService) throws java.lang.Exception
av
- is the ApplicationView objectstrService
- is the String service nameprotected abstract java.lang.String getAdapterLogicalName()
protected abstract java.lang.Class getManagedConnectionFactoryClass()
public javax.resource.cci.Connection getConnection() throws java.lang.Exception
public javax.resource.cci.ConnectionFactory getConnectionFactory() throws java.lang.Exception
protected void closeConnection()
public IApplicationViewDescriptor createApplicationViewDescriptor(java.lang.String appViewName)
appViewName
- is the String name of the application viewpublic IApplicationViewDescriptor getApplicationViewDescriptor()
public IApplicationViewDescriptor getApplicationViewDescriptor(java.lang.String strName) throws ApplicationViewException, javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException, NamespaceException
public void setApplicationViewDescriptor(IApplicationViewDescriptor avd)
avd
- is an IApplicationViewDescriptorpublic int resetApplicationViewDescriptor(java.lang.String strQualifiedAppViewName) throws java.lang.Exception
public QualifiedName addSchemaToRepository(java.lang.String strKey, SOMSchema schema) throws java.lang.Exception
addServiceSchemasToRepository
or addEventSchemaToRepository
methods directly.
strKey
- - the key for the schema in the repositoryschema
- - the schema object to add to the repositorypublic void updateSchemaInRepository(java.lang.String strSchemaName, SOMSchema schema) throws java.lang.Exception
addServiceSchemasToRepository
or addEventSchemaToRepository
methods directly.
schemaName
- - the key for the schema in the repositoryschema
- - the schema object to update in the repositorypublic void addServiceSchemasToRepository(IServiceDescriptor sd, IDocumentDefinition requestDef, IDocumentDefinition responseDef) throws java.lang.Exception
public void addEventSchemaToRepository(IEventDescriptor ed, IDocumentDefinition eventDef) throws java.lang.Exception
public void addServiceSchemasToRepository(IApplicationViewDescriptor avd, IServiceDescriptor sd, IDocumentDefinition requestDef, IDocumentDefinition responseDef) throws java.lang.Exception
public void addEventSchemaToRepository(IApplicationViewDescriptor avd, IEventDescriptor ed, IDocumentDefinition eventDef) throws java.lang.Exception
protected IDocumentDescriptor addOrUpdateSchema(SchemaManager schemaManager, QualifiedName schemaQName, IDocumentDefinition def) throws java.lang.Exception
public QualifiedName getQualifiedName(java.lang.String strQualifiedName) throws javax.naming.NamingException, javax.ejb.CreateException, java.rmi.RemoteException, NamespaceException
public void finalize()
public int getApplicationViewDescriptorState()
protected java.lang.String getNextAction(java.lang.String strAction)
strAction
- is the action for which we want to get the next
action (jsp screen) in our screen flow. The code elsewhere in this
class that calls this method always checks for null before moving
forward.public ActionResult confconn(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
request
- is the HttpServletRequestprotected QualifiedName getAppViewName(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
public ActionResult redepappvw(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
public ActionResult depappvw(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
request
- is the HttpServletRequestpublic ActionResult appvwadmin(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
request
- is the HttpServletRequestpublic ActionResult chmod(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
request
- is the HttpServletRequestpublic ActionResult removeprincipal(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
request
- is the HttpServletRequestpublic ActionResult edtappvw(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
request
- is the HttpServletRequestpublic ActionResult undepappvw(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
request
- is the HttpServletRequestpublic ActionResult remappvw(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
request
- is the HttpServletRequestpublic java.lang.String getEventSchemaName(IEventDescriptor ed)
ed
- is an IEventDescriptorpublic java.lang.String getRequestSchemaName(IServiceDescriptor sd)
sd
- is an IServiceDescriptorpublic java.lang.String getResponseSchemaName(IServiceDescriptor sd)
sd
- is an IServiceDescriptorprotected javax.resource.spi.ManagedConnectionFactory validateConnectionParameters() throws java.lang.Exception
protected javax.resource.spi.ManagedConnectionFactory configureManagedConnectionFactory() throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException, java.beans.IntrospectionException, java.lang.reflect.InvocationTargetException
javax.resource.spi.ManagedConnectionFactory
interface. This method uses the Java reflection API to invoke all setter
methods on the instance that have a corresponding entry in the
mapOfConnectionParameters
argument.
strManagedConnectionFactoryClassName
- - the fully qualified class
name of the javax.resource.spi.ManagedConnectionFactory
implementation class for the adapter.protected java.lang.String getConnectionFactoryObjectName(QualifiedName appViewName)
protected java.lang.String getConnectionFactoryDeploymentName(QualifiedName appViewName)
protected java.lang.String getConnectionFactoryJNDIName(QualifiedName qualifiedAppViewName)
qualifiedAppViewName
- is a QualifiedName object for the app view.protected void savePropertiesFromFactory(javax.resource.spi.ManagedConnectionFactory factory) throws java.lang.Exception
factory
- is the ManagedConnectionFactory whose properties need saving.public boolean supportsEvents()
public boolean supportsServices()
public boolean supportsServiceTest()
public boolean supportsEventTest()
public boolean supportsEditableEvents()
public boolean supportsEditableServices()
public ActionResult addservc(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
public ActionResult edtservc(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
protected abstract void initServiceDescriptor(ActionResult result, IServiceDescriptor sd, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
result
- - indicates the success or failure of the action; when
the object is passed in, it is configured for success. If an error
condition occurs in this method, the result can be changed.sd
- - an object that describes a service for an application view.request
- - the HTTP request to access any parameters that are not
validated by the controller servlet prior to invoking the addservc method.public void loadServiceDescriptorProperties(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
request
- - the HTTP request to access any parameters that are not
validated by the controller servlet prior to invoking the addevent method.public void editServiceDescriptor(ActionResult result, IServiceDescriptor service, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
result
- - indicates the success or failure of the action; when
the object is passed in, it is configured for success. If an error
condition occurs in this method, the result can be changed.sd
- - an object that describes a service for an application view.request
- - the HTTP request to access any parameters that are not
validated by the controller servlet prior to invoking the addservc method.public ActionResult addevent(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
public ActionResult edtevent(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
protected abstract void initEventDescriptor(ActionResult result, IEventDescriptor ed, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
result
- - indicates the success or failure of the action; when
the object is passed in, it is configured for success. If an error
condition occurs in this method, the result can be changed.ed
- - provides information about an event for an application view;
schema name, etc.request
- - the HTTP request to access any parameters that are not
validated by the controller servlet prior to invoking the addevent method.public void loadEventDescriptorProperties(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
request
- - the HTTP request to access any parameters that are not
validated by the controller servlet prior to invoking the addevent method.public void editEventDescriptor(ActionResult result, IEventDescriptor event, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
result
- - indicates the success or failure of the action; when
the object is passed in, it is configured for success. If an error
condition occurs in this method, the result can be changed.sd
- - an object that describes a service for an application view.request
- - the HTTP request to access any parameters that are not
validated by the controller servlet prior to invoking the addservc method.protected void debugDocument(java.lang.String strMessage, ILogger logger, IDocument doc)
protected IConnectionFactoryDescriptor createConnectionFactoryDescriptor(QualifiedName appViewName, java.lang.String logicalName) throws java.lang.Exception
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |