com.sap.aii.proxy.xiruntime.core

Class AbstractProxy

java.lang.Object
  extended by com.sap.aii.proxy.xiruntime.core.AbstractProxy
All Implemented Interfaces:
AbstractProxyInbound, Serializable

public abstract class AbstractProxy
extends Object
implements AbstractProxyInbound, Serializable

This is the root class of all generated proxy classes. It provides a method for sending the instance data of a given BaseType object as an XML document to some destination. This class also implements the "root" interface AbstractProxyInbound for inbound proxies.

Copyright (c) 2001 SAP AG

See Also:
AbstractProxyInbound, BaseType, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sap.aii.proxy.xiruntime.core.AbstractProxyInbound
AbstractProxyInbound.Helper
 
Field Summary
protected  BaseProxyDescriptor baseProxyDescriptor
          Descriptor describing XML-specific aspects of this AbstractProxy
 Descriptor descriptor
          Descriptor describing XML-specific aspects of this AbstractProxy
static int DO_NOTHING
           
 GenerationInfo generationInfo
          Generation info containing version and timestamp
static int GET_OWN_SERVICE_NAME
           
static int GET_R3_RFC_DESTINATION_FOR_BS
           
 JcoRuntimeMetaData jcoRuntimeMetaData
          Public interface enabling access to runtime meta data
protected  JcoRuntimeMetaDataImpl jcoRuntimeMetaDataImpl
          Class providing access to certain JCo runtime meta data
 MessageSpecifier messageSpecifier
          Public interface of message specifier
protected  MessageSpecifierImpl messageSpecifierImpl
          Message specifier providing user values for certain message characteristics
 ServiceMeteringData serviceMeteringData
          Service Metering Data
 
Constructor Summary
protected AbstractProxy()
           
protected AbstractProxy(BaseProxyDescriptor baseProxyDescriptor)
           
protected AbstractProxy(BaseProxyDescriptor baseProxyDescriptor, GenerationInfo generationInfo)
           
protected AbstractProxy(BaseProxyDescriptor baseProxyDescriptor, GenerationInfo generationInfo, int connectionType)
           
protected AbstractProxy(BaseProxyDescriptor baseProxyDescriptor, int connectionType)
           
 
Method Summary
protected  ApplicationFaultException createExceptionWrongExceptionType$(ApplicationFaultException exception)
           
protected  ApplicationFaultException createExceptionWrongType$(BaseType type)
           
protected  ApplicationFaultException createNewApplicationFaultException$(String message, Throwable rootCause)
           
 Object runtime$(int selector, Object[] args)
          returns values associated with this JPR instance
protected  BaseType send$(BaseType requestType, String namespace, String interfaceName, String methodName, BaseType responseType)
          renders the given BaseType instance into a message and sends it to a destination determined according to the chosen message format.
 void setMessageSpecifier$(MessageSpecifier messageSpecifier)
          copies the given messageSpecifier into the messageSpecifier of this instance
 void setServiceMeteringData$(ServiceMeteringData smd)
           
 void setWSProxy$()
          set WS Proxy Scenario
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DO_NOTHING

public static final int DO_NOTHING
See Also:
Constant Field Values

GET_OWN_SERVICE_NAME

public static final int GET_OWN_SERVICE_NAME
See Also:
Constant Field Values

GET_R3_RFC_DESTINATION_FOR_BS

public static final int GET_R3_RFC_DESTINATION_FOR_BS
See Also:
Constant Field Values

baseProxyDescriptor

protected BaseProxyDescriptor baseProxyDescriptor
Descriptor describing XML-specific aspects of this AbstractProxy


messageSpecifierImpl

protected final MessageSpecifierImpl messageSpecifierImpl
Message specifier providing user values for certain message characteristics


descriptor

public final Descriptor descriptor
Descriptor describing XML-specific aspects of this AbstractProxy


messageSpecifier

public final MessageSpecifier messageSpecifier
Public interface of message specifier


generationInfo

public GenerationInfo generationInfo
Generation info containing version and timestamp


jcoRuntimeMetaDataImpl

protected transient JcoRuntimeMetaDataImpl jcoRuntimeMetaDataImpl
Class providing access to certain JCo runtime meta data


jcoRuntimeMetaData

public transient JcoRuntimeMetaData jcoRuntimeMetaData
Public interface enabling access to runtime meta data


serviceMeteringData

public final ServiceMeteringData serviceMeteringData
Service Metering Data

Constructor Detail

AbstractProxy

protected AbstractProxy()

AbstractProxy

protected AbstractProxy(BaseProxyDescriptor baseProxyDescriptor)

AbstractProxy

protected AbstractProxy(BaseProxyDescriptor baseProxyDescriptor,
                        int connectionType)

AbstractProxy

protected AbstractProxy(BaseProxyDescriptor baseProxyDescriptor,
                        GenerationInfo generationInfo)

AbstractProxy

protected AbstractProxy(BaseProxyDescriptor baseProxyDescriptor,
                        GenerationInfo generationInfo,
                        int connectionType)
Method Detail

setMessageSpecifier$

public final void setMessageSpecifier$(MessageSpecifier messageSpecifier)
copies the given messageSpecifier into the messageSpecifier of this instance


setWSProxy$

public final void setWSProxy$()
set WS Proxy Scenario


runtime$

public final Object runtime$(int selector,
                             Object[] args)
returns values associated with this JPR instance

Parameters:
selector - Constant denoting the requested value. Possible values: AbstractProxy.GET_OWN_SERVICE_NAME for the name of the own Service AbstractProxy.GET_R3_RFC_DESTINATION_FOR_BS for an R/3 RFC destination associated with the Business System specified by the name in the first arg (of type String)
args - Possible arguments for the selected value; maybe null
Returns:
The requested value, which needs to be casted, or null if no value was found
Throws:
IllegalArgumentException - Exception if an unknown selector was provided

send$

protected final BaseType send$(BaseType requestType,
                               String namespace,
                               String interfaceName,
                               String methodName,
                               BaseType responseType)
                        throws SystemFaultException,
                               ApplicationFaultException
renders the given BaseType instance into a message and sends it to a destination determined according to the chosen message format.

Parameters:
requestType - Object instance to render and send
namespace - Namespace name to use for the message body
interfaceName - Value of Interface tag (head) used in the message header
methodName - Value of Interface tag (tail) used in the message header
responseType - Object instance to receive and parse (if null, call is asynchronous)
Returns:
BaseType Interface of an object representing the return message (may be null)
Throws:
SystemFaultException - Proxy-specific exception indicating error during rendering or messaging
ApplicationFaultException - Application-specific exception indicating client error

createNewApplicationFaultException$

protected final ApplicationFaultException createNewApplicationFaultException$(String message,
                                                                              Throwable rootCause)

createExceptionWrongExceptionType$

protected final ApplicationFaultException createExceptionWrongExceptionType$(ApplicationFaultException exception)

createExceptionWrongType$

protected final ApplicationFaultException createExceptionWrongType$(BaseType type)

setServiceMeteringData$

public final void setServiceMeteringData$(ServiceMeteringData smd)
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] SAP_XIAF [sap.com] com.sap.aii.proxy.svc.facade api BC-XI


Copyright 2011 SAP AG Complete Copyright Notice