01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.dispatcher;
06:
07: import javax.servlet.http.HttpServletRequest;
08:
09: import com.opensymphony.webwork.dispatcher.mapper.ActionMapper;
10: import com.opensymphony.webwork.dispatcher.mapper.ActionMapping;
11:
12: /**
13: * ActionMapper for testing FilterDispatcher (used in FilterDispaatcherTest)
14: * @author tm_jee
15: * @version $Date: 2005-12-09 01:31:49 +0100 (Fri, 09 Dec 2005) $ $Id: NullActionMapper.java 1621 2005-12-09 00:31:49Z tmjee $
16: */
17: public class NullActionMapper implements ActionMapper {
18:
19: private static ActionMapping _actionMapping;
20:
21: public NullActionMapper() {
22: }
23:
24: public static void setActionMapping(
25: ActionMapping actionMappingToBeRetrned) {
26: _actionMapping = actionMappingToBeRetrned;
27: }
28:
29: public ActionMapping getMapping(HttpServletRequest request) {
30: return _actionMapping;
31: }
32:
33: public String getUriFromActionMapping(ActionMapping mapping) {
34: throw new UnsupportedOperationException(
35: "operation not supported");
36: }
37: }
|