public class HessianExporter extends RemoteExporter implements InitializingBean
Hessian は、スリムなバイナリ RPC プロトコルです。Hessian の詳細については、HessianWeb サイトを参照してください。 注: Spring 4.0 の時点で、このエクスポーターには Hessian 4.0 以降が必要です。
invoke(java.io.InputStream, java.io.OutputStream)
, HessianServiceExporter
修飾子と型 | フィールドと説明 |
---|---|
static StringSE | CONTENT_TYPE_HESSIAN ヘッセ行列のコンテンツ型( application/x-hessian )。 |
logger
コンストラクターと説明 |
---|
HessianExporter() |
修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() |
protected void | doInvoke(com.caucho.hessian.server.HessianSkeleton skeleton, InputStreamSE inputStream, OutputStreamSE outputStream) 実際には、指定されたストリームでスケルトンを呼び出します。 |
void | invoke(InputStreamSE inputStream, OutputStreamSE outputStream) エクスポートされたオブジェクトで呼び出しを実行します。 |
void | prepare() このエクスポーターを初期化します。 |
void | setAllowNonSerializable(boolean allowNonSerializable) シリアライズ不可能な型を Hessian 引数および戻り値として許可するかどうかを設定します。 |
void | setDebug(boolean debug) Hessian のデバッグモードを有効にするかどうかを設定し、このエクスポーターの Commons Logging ログに記録します。 |
void | setRemoteResolver(com.caucho.hessian.io.HessianRemoteResolver remoteResolver) リモートオブジェクト参照の解決に使用するカスタム HessianRemoteResolver を指定します。 |
void | setSendCollectionType(boolean sendCollectionType) 直列化されたコレクションごとに Java コレクション型を送信するかどうかを設定します。 |
void | setSerializerFactory(com.caucho.hessian.io.SerializerFactory serializerFactory) 使用する Hessian SerializerFactory を指定します。 |
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, setInterceptors, setRegisterTraceInterceptor, setService, setServiceInterface
getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public void setSerializerFactory(@Nullable com.caucho.hessian.io.SerializerFactory serializerFactory)
これは通常、型 com.caucho.hessian.io.SerializerFactory
の内部 Bean 定義として渡され、カスタム Bean プロパティ値が適用されます。
public void setSendCollectionType(boolean sendCollectionType)
public void setAllowNonSerializable(boolean allowNonSerializable)
public void setRemoteResolver(com.caucho.hessian.io.HessianRemoteResolver remoteResolver)
public void setDebug(boolean debug)
HessianProxyFactory.setDebug(boolean)
public void afterPropertiesSet()
InitializingBean
BeanFactoryAware
、ApplicationContextAware
などを満たした後、包含 BeanFactory
によって呼び出されます。このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。
InitializingBean
の afterPropertiesSet
public void prepare()
public void invoke(InputStreamSE inputStream, OutputStreamSE outputStream) throws ThrowableSE
inputStream
- リクエストストリーム outputStream
- レスポンスストリーム ThrowableSE
- 呼び出しが失敗した場合 protected void doInvoke(com.caucho.hessian.server.HessianSkeleton skeleton, InputStreamSE inputStream, OutputStreamSE outputStream) throws ThrowableSE
skeleton
- 呼び出すスケルトン inputStream
- リクエストストリーム outputStream
- レスポンスストリーム ThrowableSE
- 呼び出しが失敗した場合