Show page source of Function/service/aop/interceptor/servlet/HttpServletRequestCheckInterceptorService #92323

= Interceptor実装サービス jp.ossc.nimbus.service.aop.interceptor.servlet.!HttpServletRequestCheckInterceptorService
[http://nimbus.sourceforge.jp/reports/apidocs/jp/ossc/nimbus/service/aop/interceptor/servlet/HttpServletRequestCheckInterceptorService.html jp.ossc.nimbus.service.aop.interceptor.servlet.HttpServletRequestCheckInterceptorService]は、HTTPリクエスの検証を行う[http://nimbus.sourceforge.jp/reports/apidocs/jp/ossc/nimbus/service/aop/Interceptor.html Interceptor]実装サービスです。[[BR]]

以下に簡単なサービス定義を示します。
{{{ code xml
<?xml version="1.0" encoding="Shift_JIS"?>
<!DOCTYPE server PUBLIC
  "-//Nimbus//DTD Nimbus 1.0//JA"
  "http://nimbus.sourceforge.jp/dtd/nimbus-service_1_0.dtd">

<server>
    
    <manager>
        
        <!-- HTTPリクエストを検証するInterceptorサービス -->
        <service name="HttpServletRequestCheckInterceptor"
                  code="jp.ossc.nimbus.service.aop.interceptor.servlet.HttpServletRequestCheckInterceptorService">
            
            <!-- 有効なContent-Typeヘッダを設定する -->
            <attribute name="ValidContentTypes">application/x-www-form-urlencoded</attribute>
            
            <!-- 有効なHTTPメソッドを設定する -->
            <attribute name="ValidMethods">POST</attribute>
            
        </service>
        
    </manager>
    
</server>

}}}

----
[wiki:Function/service/aop#header_Interceptor アスペクト指向/Interceptor]