cx.ath.kgslab.spring.axis.client
クラス AxisInvocationInterceptor

java.lang.Object
  拡張cx.ath.kgslab.spring.axis.client.AxisInvocationInterceptor
すべての実装インタフェース:
org.aopalliance.aop.Advice, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
直系の既知のサブクラス:
AxisProxyFactoryBean

public class AxisInvocationInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware

動的呼出インタフェースのインターセプタ実装. S2AxisのDynamicInvocationInterceptorを参考に実装。

バージョン:
$Revision: 1.2 $
作成者:
NAGASAWA Takahiro

フィールドの概要
private  org.springframework.beans.factory.BeanFactory beanFactory
           
private  org.apache.axis.client.Service service
           
private  java.lang.Object[] typeMappings
           
private  java.lang.String url
           
 
コンストラクタの概要
AxisInvocationInterceptor()
          コンストラクタ.
 
メソッドの概要
 void afterPropertiesSet()
          初期化処理.
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
          メソッド呼出をサービスの呼び出しに変換する.
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 void setService(org.apache.axis.client.Service service)
          動的呼出に必要な、サービスオブジェクトを設定する.
 void setTypeMappings(java.lang.Object[] typeMappings)
          タイプマッピング定義を設定する.
 void setUrl(java.lang.String url)
          対象ウェブサービスのURLを設定する.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

service

private org.apache.axis.client.Service service

url

private java.lang.String url

typeMappings

private java.lang.Object[] typeMappings

beanFactory

private org.springframework.beans.factory.BeanFactory beanFactory
コンストラクタの詳細

AxisInvocationInterceptor

public AxisInvocationInterceptor()
コンストラクタ.

メソッドの詳細

setService

public void setService(org.apache.axis.client.Service service)
動的呼出に必要な、サービスオブジェクトを設定する.

パラメータ:
service - The service to set.

setUrl

public void setUrl(java.lang.String url)
対象ウェブサービスのURLを設定する.

パラメータ:
url - The url to set.

invoke

public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
                        throws java.lang.Throwable
メソッド呼出をサービスの呼び出しに変換する.

定義:
インタフェース org.aopalliance.intercept.MethodInterceptor 内の invoke
パラメータ:
invocation - メソッド呼出情報
例外:
java.lang.Throwable

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
初期化処理. タイプマッピング定義をサービスオブジェクトに反映する。

定義:
インタフェース org.springframework.beans.factory.InitializingBean 内の afterPropertiesSet
例外:
java.lang.Exception
関連項目:
InitializingBean.afterPropertiesSet()

setTypeMappings

public void setTypeMappings(java.lang.Object[] typeMappings)
タイプマッピング定義を設定する.

パラメータ:
typeMappings - The serializerSettings to set.

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
定義:
インタフェース org.springframework.beans.factory.BeanFactoryAware 内の setBeanFactory
例外:
org.springframework.beans.BeansException
関連項目:
BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)