FileDocCategorySizeDatePackage
Operation.javaAPI DocGlassfish v2 API7135Fri May 04 22:30:28 BST 2007com.sun.enterprise.jbi.serviceengine.util.soap

Operation

public class Operation extends Object
This object represents the operation supported by a JBI service engine. This information is obtained when a service has been deployed on the SOAP Binding component.
author
Sun Microsystems, Inc.

Fields Summary
private String
mOperationName
Operation name.
private String
mPattern
Pattern used by the operation.
private String
mSoapAction
Operation's SOAP action URI.
private String
mOperationStyle
Style used to physically represent the operation message style. This is either "rpc" style, "uri" style or "multipart" style. These styles are based on WSDL 2.0.
private String
mInterfaceStyle
Style used to physically represent the operation message style. This is either "rpc" style, "uri" style or "multipart" style. These styles are based on WSDL 2.0.
private String
mInputNamespace
Input operation namespace.
private String
mOutputNamespace
Output operation namespace.
Constructors Summary
public Operation(String operationName, String pattern)
Creates a new instance of Operation.

param
operationName operation name
param
pattern message exchange pattern name.

        mPattern = pattern;
        mOperationName = operationName;
        mOperationStyle = null;
        mSoapAction = "\"\"";
    
Methods Summary
public java.lang.StringgetInputNamespace()
Gets the operation input namespace.

return
operation input namespace;

        return mInputNamespace;
    
public java.lang.StringgetName()
Gets the operation name.

return
the operation name.

        return mOperationName;
    
public java.lang.StringgetOutputNamespace()
Gets the operation output namespace.

return
operation output namespace;

        return mOutputNamespace;
    
public java.lang.StringgetPattern()
Gets the message exchange pattern name.

return
message exchange pattern name.

        return mPattern;
    
public java.lang.StringgetSoapAction()
Gets the soap Action URI.

return
soap action associated with this operation.

        return mSoapAction;
    
public java.lang.StringgetStyle()
Gets the operation style.

return
operation style.

        if (mOperationStyle != null)
        {
            return mOperationStyle;
        }
        else
        {
            return mInterfaceStyle;
        }
    
public booleanisInputEncoded()
Indicates whether the operation input is encoded or not.

return
false if it is not encoded;true otherwise.

        return false;
    
public booleanisOutputEncoded()
Indicates whether the operation output is encoded or not.

return
false if it is not encoded;true otherwise.

        return false;
    
public voidsetInputNamespace(java.lang.String namespace)
Sets the operation input namespace.

param
namespace operation input namespace

        mInputNamespace = namespace;
    
public voidsetInterfaceStyle(java.lang.String style)
Sets the interface style.

param
style interface style

        mInterfaceStyle = style;
    
public voidsetOutputNamespace(java.lang.String namespace)
Sets the operation output namespace.

param
namespace operation output namespace

        mOutputNamespace = namespace;
    
public voidsetSoapAction(java.lang.String soapAction)
Sets the soap Action URI.

param
soapAction soapAction associated with this operation.

        if ( ( soapAction != null) && ( !soapAction.equals("")) )
        {
            mSoapAction = soapAction;
        }
    
public voidsetStyle(java.lang.String operationStyle)
Sets the operation style.

param
operationStyle operation style.

        mOperationStyle = operationStyle;
    
public java.lang.StringtoString()
Returns the operation as a string.

return
operation represented as a string.

        StringBuffer buffer = new StringBuffer();
        buffer.append("{ name = " + mOperationName);
        buffer.append(", pattern = " + mPattern);
        buffer.append(", style = " +  getStyle());
        buffer.append(", soap action = " + mSoapAction);
        buffer.append(", input namespace = " + mInputNamespace);
        buffer.append(", output namespace = " + mOutputNamespace);
        buffer.append("}");
        return buffer.toString();