1 package org.apache.archiva.redback.struts2;
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
22 import com.opensymphony.xwork2.ActionContext;
23 import com.opensymphony.xwork2.ActionEventListener;
24 import com.opensymphony.xwork2.ActionInvocation;
25 import com.opensymphony.xwork2.ActionProxy;
26 import com.opensymphony.xwork2.Result;
27 import com.opensymphony.xwork2.interceptor.PreResultListener;
28 import com.opensymphony.xwork2.util.ValueStack;
31 * @noinspection ProhibitedExceptionDeclared
33 public class ActionInvocationStub
34 implements ActionInvocation
36 private ActionContext actionContext = new ActionContextStub();
38 private ActionProxy actionProxy = new ActionProxyStub();
40 public ActionInvocationStub()
42 actionContext.setActionInvocation( this );
45 public Object getAction()
50 public boolean isExecuted()
55 public ActionContext getInvocationContext()
60 public ActionProxy getProxy()
65 public Result getResult()
71 public String getResultCode()
76 public void setResultCode( String code )
81 public ValueStack getStack()
86 public void addPreResultListener( PreResultListener listener )
91 public String invoke()
97 public String invokeActionOnly()
103 public void setActionEventListener(ActionEventListener arg0) {
107 public void init(ActionProxy arg0) {