1
19
20 package com.liferay.portlet.wsrp;
21
22 import org.apache.wsrp4j.consumer.URLGenerator;
23 import org.apache.wsrp4j.consumer.URLTemplateComposer;
24
25
31 public class URLTemplateComposerImpl implements URLTemplateComposer {
32
33 public static URLTemplateComposer getInstance() {
34 if (_instance == null) {
35 _instance = new URLTemplateComposerImpl();
36 }
37
38 return _instance;
39 }
40
41 private URLTemplateComposerImpl() {
42 }
43
44
47 public void setURLGenerator(URLGenerator urlGenerator) {
48 this._urlGenerator = urlGenerator;
49 }
50
51 public String createBlockingActionTemplate(boolean includePortletHandle,
52 boolean includeUserContextKey, boolean includePortletInstanceKey,
53 boolean includeSessionID) {
54
55 String template = null;
56
57
59 return template;
60 }
61
62 public String createSecureBlockingActionTemplate(
63 boolean includePortletHandle, boolean includeUserContextKey,
64 boolean includePortletInstanceKey, boolean includeSessionID) {
65
66 String template = null;
67
68
76 return template;
77 }
78
79 public String createRenderTemplate(boolean includePortletHandle,
80 boolean includeUserContextKey, boolean includePortletInstanceKey,
81 boolean includeSessionID) {
82
83 String template = null;
84
85
87 return template;
88 }
89
90 public String createSecureRenderTemplate(boolean includePortletHandle,
91 boolean includeUserContextKey, boolean includePortletInstanceKey,
92 boolean includeSessionID) {
93
94 String template = null;
95
96
98 return template;
99 }
100
101 public String createResourceTemplate(boolean includePortletHandle,
102 boolean includeUserContextKey, boolean includePortletInstanceKey,
103 boolean includeSessionID) {
104
105 String template = null;
106
107
109 return template;
110 }
111
112 public String createSecureResourceTemplate(boolean includePortletHandle,
113 boolean includeUserContextKey, boolean includePortletInstanceKey,
114 boolean includeSessionID) {
115
116 String template = null;
117
118
120 return template;
121 }
122
123 public String createDefaultTemplate(boolean includePortletHandle,
124 boolean includeUserContextKey, boolean includePortletInstanceKey,
125 boolean includeSessionID) {
126
127 String template = null;
128
129
131 return template;
132 }
133
134 public String createSecureDefaultTemplate(boolean includePortletHandle,
135 boolean includeUserContextKey, boolean includePortletInstanceKey,
136 boolean includeSessionID) {
137
138 String template = null;
139
140
142 return template;
143 }
144
145 public String getNamespacePrefix() {
146 return _urlGenerator.getNamespacedToken("");
147 }
148
149 private static URLTemplateComposer _instance = null;
150
151 private URLGenerator _urlGenerator = null;
152
153 }