IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.struts.actions
Class WSIFAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.ibm.btt.struts.actions.BTTBaseAction
          extended bycom.ibm.btt.struts.actions.WSIFAction
Direct Known Subclasses:
WSIFLogOffAction, WSIFSignInAction

public class WSIFAction
extends BTTBaseAction


Field Summary
 org.apache.wsif.WSIFMessage faultMessage
          The faultMessage used to store the exception data from BP service.
protected static java.util.ResourceBundle strutsException
           
protected static java.util.ResourceBundle strutsTrace
           
 
Fields inherited from class com.ibm.btt.struts.actions.BTTBaseAction
processorUtil, USING_WORKAREA
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
WSIFAction()
           
 
Method Summary
 org.apache.wsif.WSIFOperation createWSIFOperation()
          Create WSIF Operation according to the input attributes.
 org.apache.struts.action.ActionForward doAction(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Provide a Virtual Menthod named doAction .
 int executeWSIF(Context processCtx, org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
 org.apache.wsif.WSIFMessage getFaultMessage()
          Returns the faultMessage.
 org.apache.struts.action.ActionForward getForward(org.apache.struts.action.ActionMapping mapping, int i)
           
 org.apache.wsif.WSIFMessage getInputMessage()
          Returns the inputMessage.
 java.lang.String getNs()
          Returns the ns.
 java.lang.String getOperation()
          Returns the operation.
 org.apache.wsif.WSIFMessage getOutputMessage()
          Returns the outputMessage.
 java.lang.String getPname()
          Returns the pname.
 java.lang.String getPns()
          Returns the pns.
 java.lang.String getPortType()
          Returns the portType.
 java.lang.String getService()
          Returns the service.
 java.lang.String getWsdlFile()
          Returns the wsdlFile.
 void iniWSIFConfig(org.apache.struts.action.ActionMapping mapping)
          Initilize WSIF Config
 boolean isAdvancedService()
           
 void populateFromOutputMessage(Context processCtx, org.apache.struts.action.ActionMapping mapping)
           
 void populateToInputMessage(Context processCtx, org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
 void setAdvancedService(boolean b)
           
 void setFaultMessage(org.apache.wsif.WSIFMessage faultMessage)
          Sets the faultMessage.
 void setInputMessage(org.apache.wsif.WSIFMessage inputMessage)
          Sets the inputMessage.
 void setNs(java.lang.String ns)
          Sets the ns.
 void setOperation(java.lang.String operation)
          Sets the operation.
 void setOutputMessage(org.apache.wsif.WSIFMessage outputMessage)
          Sets the outputMessage.
 void setPname(java.lang.String pname)
          Sets the pname.
 void setPns(java.lang.String pns)
          Sets the pns.
 void setPortType(java.lang.String portType)
          Sets the portType.
 void setService(java.lang.String service)
          Sets the service.
 void setWsdlFile(java.lang.String wsdlFile)
          Sets the wsdlFile.
 
Methods inherited from class com.ibm.btt.struts.actions.BTTBaseAction
execute, getProcessCtx, getProcessId, getSessionId, isBTTTokenValid, isNeedToken, isWorkAreaSupport, resetBTTToken, saveBTTToken
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

strutsTrace

protected static java.util.ResourceBundle strutsTrace

strutsException

protected static java.util.ResourceBundle strutsException

faultMessage

public org.apache.wsif.WSIFMessage faultMessage
The faultMessage used to store the exception data from BP service.

Constructor Detail

WSIFAction

public WSIFAction()
Method Detail

iniWSIFConfig

public void iniWSIFConfig(org.apache.struts.action.ActionMapping mapping)
Initilize WSIF Config


executeWSIF

public int executeWSIF(Context processCtx,
                       org.apache.struts.action.ActionMapping mapping,
                       javax.servlet.http.HttpServletRequest request)
                throws java.lang.Exception
Throws:
java.lang.Exception

createWSIFOperation

public org.apache.wsif.WSIFOperation createWSIFOperation()
                                                  throws java.lang.Exception
Create WSIF Operation according to the input attributes.

Returns:
WSIFOperation WSIFOperation according to the wsdl attributes.
Throws:
DSEInvalidRequestException - Create WSIF Operation exception
java.lang.Exception

getFaultMessage

public org.apache.wsif.WSIFMessage getFaultMessage()
Returns the faultMessage.

Returns:
WSIFMessage

getInputMessage

public org.apache.wsif.WSIFMessage getInputMessage()
Returns the inputMessage.

Returns:
WSIFMessage

getOutputMessage

public org.apache.wsif.WSIFMessage getOutputMessage()
Returns the outputMessage.

Returns:
WSIFMessage

setFaultMessage

public void setFaultMessage(org.apache.wsif.WSIFMessage faultMessage)
Sets the faultMessage.

Parameters:
faultMessage - The faultMessage to set

setInputMessage

public void setInputMessage(org.apache.wsif.WSIFMessage inputMessage)
Sets the inputMessage.

Parameters:
inputMessage - The inputMessage to set

setOutputMessage

public void setOutputMessage(org.apache.wsif.WSIFMessage outputMessage)
Sets the outputMessage.

Parameters:
outputMessage - The outputMessage to set

getNs

public java.lang.String getNs()
Returns the ns.

Returns:
String

getOperation

public java.lang.String getOperation()
Returns the operation.

Returns:
String

getPname

public java.lang.String getPname()
Returns the pname.

Returns:
String

getPns

public java.lang.String getPns()
Returns the pns.

Returns:
String

getPortType

public java.lang.String getPortType()
Returns the portType.

Returns:
String

getService

public java.lang.String getService()
Returns the service.

Returns:
String

getWsdlFile

public java.lang.String getWsdlFile()
Returns the wsdlFile.

Returns:
String

setNs

public void setNs(java.lang.String ns)
Sets the ns.

Parameters:
ns - The ns to set

setOperation

public void setOperation(java.lang.String operation)
Sets the operation.

Parameters:
operation - The operation to set

setPname

public void setPname(java.lang.String pname)
Sets the pname.

Parameters:
pname - The pname to set

setPns

public void setPns(java.lang.String pns)
Sets the pns.

Parameters:
pns - The pns to set

setPortType

public void setPortType(java.lang.String portType)
Sets the portType.

Parameters:
portType - The portType to set

setService

public void setService(java.lang.String service)
Sets the service.

Parameters:
service - The service to set

setWsdlFile

public void setWsdlFile(java.lang.String wsdlFile)
Sets the wsdlFile.

Parameters:
wsdlFile - The wsdlFile to set

isAdvancedService

public boolean isAdvancedService()
Returns:
boolean

setAdvancedService

public void setAdvancedService(boolean b)
Parameters:
b -

doAction

public org.apache.struts.action.ActionForward doAction(org.apache.struts.action.ActionMapping mapping,
                                                       org.apache.struts.action.ActionForm form,
                                                       javax.servlet.http.HttpServletRequest request,
                                                       javax.servlet.http.HttpServletResponse response)
                                                throws java.lang.Exception
Description copied from class: BTTBaseAction
Provide a Virtual Menthod named doAction . The method would be invoked in the entry method of Action named execute EveryBody can override the method to insert the business logic

Overrides:
doAction in class BTTBaseAction
Parameters:
mapping -
form -
request -
response -
Returns:
ActionForward
Throws:
java.lang.Exception

populateToInputMessage

public void populateToInputMessage(Context processCtx,
                                   org.apache.struts.action.ActionMapping mapping,
                                   javax.servlet.http.HttpServletRequest request)
                            throws org.apache.wsif.WSIFException,
                                   DSEObjectNotFoundException
Parameters:
processCtx -
mapping -
request -
Throws:
org.apache.wsif.WSIFException
DSEObjectNotFoundException

populateFromOutputMessage

public void populateFromOutputMessage(Context processCtx,
                                      org.apache.struts.action.ActionMapping mapping)
                               throws org.apache.wsif.WSIFException,
                                      DSEInvalidArgumentException,
                                      DSEObjectNotFoundException,
                                      DSEInvalidRequestException
Parameters:
processCtx -
mapping -
Throws:
org.apache.wsif.WSIFException
DSEInvalidArgumentException
DSEObjectNotFoundException
DSEInvalidRequestException

getForward

public org.apache.struts.action.ActionForward getForward(org.apache.struts.action.ActionMapping mapping,
                                                         int i)
Parameters:
mapping -
Returns:
ActionForward

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005