Coverage Report - org.seasar.cubby.routing.impl.InternalForwardInfoImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
InternalForwardInfoImpl
75%
6/8
N/A
0
 
 1  
 /*
 2  
  * Copyright 2004-2008 the Seasar Foundation and the Others.
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package org.seasar.cubby.routing.impl;
 17  
 
 18  
 import java.util.Map;
 19  
 
 20  
 import org.seasar.cubby.routing.InternalForwardInfo;
 21  
 import org.seasar.cubby.routing.impl.PathResolverImpl.Routing;
 22  
 
 23  
 /**
 24  
  * 内部フォワード情報の実装です。
 25  
  * 
 26  
  * @author baba
 27  
  * @since 1.0.0
 28  
  */
 29  
 class InternalForwardInfoImpl implements InternalForwardInfo {
 30  
 
 31  
         /** 内部フォワード先のパス */
 32  
         private final String internalForwardPath;
 33  
 
 34  
         /** 内部フォワード先のアクションクラス名 */
 35  
         private final String actionClassName;
 36  
 
 37  
         /** 内部フォワード先のアクションメソッド名 */
 38  
         private final String methodName;
 39  
 
 40  
         /**
 41  
          * インスタンス化します。
 42  
          * 
 43  
          * @param internalForwardPath
 44  
          *            内部フォワードパス
 45  
          * @param routing
 46  
          *            ルーティング
 47  
          * @param uriParameters
 48  
          *            URI パラメータ
 49  
          */
 50  
         public InternalForwardInfoImpl(final String internalForwardPath,
 51  10
                         final Routing routing, final Map<String, String> uriParameters) {
 52  10
                 this.internalForwardPath = internalForwardPath;
 53  10
                 this.actionClassName = routing.getActionClass().getCanonicalName();
 54  10
                 this.methodName = routing.getMethod().getName();
 55  10
         }
 56  
 
 57  
         /**
 58  
          * {@inheritDoc}
 59  
          */
 60  
         public String getInternalForwardPath() {
 61  10
                 return internalForwardPath;
 62  
         }
 63  
 
 64  
         /**
 65  
          * {@inheritDoc}
 66  
          */
 67  
         public String getActionClassName() {
 68  0
                 return actionClassName;
 69  
         }
 70  
 
 71  
         /**
 72  
          * {@inheritDoc}
 73  
          */
 74  
         public String getMethodName() {
 75  0
                 return methodName;
 76  
         }
 77  
 
 78  
 }