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
- 関連項目:
- 直列化された形式
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.