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 com.fatwire.gst.foundation.facade.runtag.AbstractTagRunner;
20  
21  /**
22   * Implements the RENDER.GETBLOBURL tag.
23   * <p/>
24   * 
25   * <pre>
26   * &lt;RENDER.GETBLOBURL
27   *       OUTSTR="VariableName"
28   *       [BLOBTABLE="blobTable"]
29   *       [BLOBKEY="primaryKeyName"]
30   *       [BLOBWHERE="primaryKeyValue"]
31   *       [BLOBCOL="column name"]
32   *       [C="asset type"]
33   *       [CID="asset id"]
34   *       [ASSET="asset instance name"]
35   *       [FIELD="asset field name"]
36   *       [BLOBHEADER="MIMEtype"]
37   *       [BLOBNOCACHE="false"]
38   *       [ADDSESSION="true"]
39   *       [DYNAMIC="true"]
40   *       [BLOBHEADERNAMEN="value"]
41   *       [BLOBHEADERVALUEN="value"]
42   *       [CSBLOBID="session variable value"]
43   *       [ASSEMBLER="uri assembler shortform"]
44   *       [CONTAINER="servlet|portlet"]
45   *       [FRAGMENT="fragment value"]
46   *       [PARENTID="parent to log this blob as a dependency"]
47   *       [SATELLITE="true|false"]
48   *       [SCHEME="scheme value"]
49   *       [AUTHORITY="authority value"]
50   *       [PREFERREDFILE="filename"]
51   *       [PREFERREDDIR="path"]
52   *       &gt;
53   *    &lt;/RENDER.GETBLOBURL&gt;
54   * </pre>
55   * 
56   * @author Dolf Dijkstra
57   * @since Feb 15, 2011
58   */
59  public final class GetBlobUrl extends AbstractTagRunner {
60  
61      public GetBlobUrl() {
62          super("RENDER.GETBLOBURL");
63      }
64  
65      /**
66       * @param s
67       */
68      public void setAsset(String s) {
69          set("ASSET", s);
70      }
71  
72      /**
73       * @param b
74       */
75      public void setAddSession(boolean b) {
76          set("ADDSESSION", b ? "TRUE" : "FALSE");
77      }
78  
79      /**
80       * @param s
81       */
82      public void setAssembler(String s) {
83          set("ASSEMBLER", s);
84      }
85  
86      /**
87       * @param s
88       */
89      public void setAuthority(String s) {
90          set("AUTHORITY", s);
91      }
92  
93      /**
94       * @param s
95       */
96      public void setC(String s) {
97          set("C", s);
98      }
99  
100     /**
101      * @param s
102      */
103     public void setCid(String s) {
104         set("CID", s);
105     }
106 
107     /**
108      * @param s
109      */
110     public void setContainer(String s) {
111         set("CONTAINER", s);
112     }
113 
114     /**
115      * @param s
116      */
117     public void setDynamic(String s) {
118         set("DYNAMIC", s);
119     }
120 
121     /**
122      * @param s
123      */
124     public void setFragment(String s) {
125         set("FRAGMENT", s);
126     }
127 
128     /**
129      * @param s
130      */
131     public void setOutstr(String s) {
132         set("OUTSTR", s);
133     }
134 
135     /**
136      * @param s
137      */
138     public void setSatellite(String s) {
139         set("SATELLITE", s);
140     }
141 
142     /**
143      * @param s
144      */
145     public void setScheme(String s) {
146         set("SCHEME", s);
147     }
148 
149     /**
150      * @param s
151      */
152     public void setBlobTable(String s) {
153         set("BLOBTABLE", s);
154     }
155 
156     /**
157      * @param s
158      */
159     public void setBlobKey(String s) {
160         set("BLOBKEY", s);
161     }
162 
163     /**
164      * @param s
165      */
166     public void setBlobWhere(String s) {
167         set("BLOBWHERE", s);
168     }
169 
170     /**
171      * @param s
172      */
173     public void setBlobCol(String s) {
174         set("BLOBCOL", s);
175     }
176 
177     /**
178      * @param s
179      */
180     public void setField(String s) {
181         set("FIELD", s);
182     }
183 
184     /**
185      * @param s
186      */
187     public void setBobHeader(String s) {
188         set("BLOBHEADER", s);
189     }
190 
191     /**
192      * @param s
193      */
194     public void setBlobNoCache(String s) {
195         set("BLOBNOCACHE", s);
196     }
197 
198     /**
199      * @param n
200      * @param s
201      */
202     public void setBlobHeaderName(int n, String s) {
203         set("BLOBHEADERNAME" + n, s);
204     }
205 
206     /**
207      * @param n
208      * @param s
209      */
210     public void setBlobHeaderValue(int n, String s) {
211         set("BLOBHEADERVALUE" + n, s);
212     }
213 
214     /**
215      * @param s
216      */
217     public void setCSBlobId(String s) {
218         set("CSBLOBID", s);
219     }
220 
221     /**
222      * @param s
223      */
224     public void setParentId(String s) {
225         set("PARENTID", s);
226     }
227 
228     /**
229      * @param s
230      */
231     public void setPreferredFile(String s) {
232         set("PREFERREDFILE", s);
233     }
234 
235     /**
236      * @param s
237      */
238     public void setPreferredDir(String s) {
239         set("PREFERREDDIR", s);
240     }
241 
242 }