View Javadoc

1   /*
2    * Copyright 2008 FatWire Corporation. All Rights Reserved.
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, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package com.fatwire.gst.foundation.facade.runtag.render;
18  
19  import org.apache.commons.logging.Log;
20  import org.apache.commons.logging.LogFactory;
21  
22  /**
23   * Builds a PageUrl.
24   * 
25   * @author Dolf Dijkstra
26   * @since Mar 13, 2011
27   */
28  public class GetPageUrl extends TagRunnerWithArguments {
29  
30      private static Log LOG = LogFactory.getLog(GetTemplateUrl.class);
31  
32      /**
33       * 
34       */
35      public GetPageUrl() {
36          super("RENDER.GETPAGEURL");
37      }
38  
39      /**
40       * @param b
41       */
42      public void setAddSession(boolean b) {
43          set("ADDSESSION", b ? "TRUE" : "FALSE");
44      }
45  
46      /**
47       * @param s
48       */
49      public void setAssembler(String s) {
50          set("ASSEMBLER", s);
51          set("assembler", s);
52      }
53  
54      /**
55       * @param s
56       */
57      public void setAuthority(String s) {
58          set("AUTHORITY", s);
59      }
60  
61      /**
62       * @param s
63       */
64      public void setC(String s) {
65          set("C", s);
66      }
67  
68      /**
69       * @param s
70       */
71      public void setCid(String s) {
72          set("CID", s);
73      }
74  
75      /**
76       * @param s
77       */
78      public void setP(String s) {
79          set("P", s);
80      }
81  
82      /**
83       * @param s
84       */
85      public void setContainer(String s) {
86          set("CONTAINER", s);
87      }
88  
89      /**
90       * @param s
91       */
92      public void setDeptype(String s) {
93          set("DEPTYPE", s);
94      }
95  
96      /**
97       * @param b
98       */
99      public void setDynamic(boolean b) {
100         set("DYNAMIC", b ? "TRUE" : "FALSE");
101     }
102 
103     /**
104      * @param s
105      */
106     public void setFragment(String s) {
107         set("FRAGMENT", s);
108     }
109 
110     /**
111      * @param s
112      */
113     public void setOutstr(String s) {
114         set("OUTSTR", s);
115     }
116 
117     /**
118      * @param s
119      */
120     public void setPackedargs(String s) {
121         set("PACKEDARGS", s);
122     }
123 
124     /**
125      * @param b
126      */
127     public void setSatellite(boolean b) {
128         set("SATELLITE", b ? "TRUE" : "FALSE");
129     }
130 
131     /**
132      * @param s
133      */
134     public void setScheme(String s) {
135         set("SCHEME", s);
136     }
137 
138     /**
139      * @param s
140      */
141     public void setPagename(String s) {
142         set("PAGENAME", s);
143     }
144 
145     /**
146      * @param s
147      */
148     public void setWrapperpage(String s) {
149         if (LOG.isTraceEnabled())
150             LOG.trace("Setting wrapper to :" + s);
151         set("wrapperpage", s);
152         set("WRAPPERPAGE", s);
153     }
154 }