net.jp.saf.sastruts.method.helpers.impl
クラス AbstractErrorHandler

java.lang.Object
  上位を拡張 net.jp.saf.sastruts.method.helpers.impl.AbstractErrorHandler
すべての実装されたインタフェース:
Serializable, ErrorHandler
直系の既知のサブクラス:
MethodNotAllowedErrorHandler, NotImplementedErrorHandler, ThrowExceptionErrorHandler

public abstract class AbstractErrorHandler
extends Object
implements ErrorHandler

共通で使用する処理を実装した基底クラス.

作成者:
k-minemoto
関連項目:
直列化された形式

コンストラクタの概要
AbstractErrorHandler()
           
 
メソッドの概要
protected  String allowHeaderValue(HttpMethod[] methods)
          重複無しで、かつREST_CRUDのようなenumをHTTPメソッドに展開してカンマ区切りで返します。
protected  void throwMethodNotAllowedRuntimeException(HttpMethod[] allowed, String method, Throwable cause)
          MethodNotAllowedRuntimeExceptionの例外を発生させます.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース net.jp.saf.sastruts.method.helpers.ErrorHandler から継承されたメソッド
error
 

コンストラクタの詳細

AbstractErrorHandler

public AbstractErrorHandler()
メソッドの詳細

allowHeaderValue

protected String allowHeaderValue(HttpMethod[] methods)
重複無しで、かつREST_CRUDのようなenumをHTTPメソッドに展開してカンマ区切りで返します。

パラメータ:
methods - 文字列にするHttpMethodの配列
戻り値:
メソッドのカンマ区切り文字列

throwMethodNotAllowedRuntimeException

protected final void throwMethodNotAllowedRuntimeException(HttpMethod[] allowed,
                                                           String method,
                                                           Throwable cause)
MethodNotAllowedRuntimeExceptionの例外を発生させます.

パラメータ:
allowed - 許可されているHttpMethodの配列
method - 実際に呼び出されたメソッド
cause - 元となった例外


Copyright © 2013 k-minemoto. All Rights Reserved.