Commit 674f467
committed
PKIService: add more general variants of resolveFormat
PKIService.resolveFormat is used to check a media type, or list of
media types (possibly including wildcards) against the default list
of content types understood and produced or processed by Dogtag.
The current variants compare the parameter against a hardcoded list
of supported content types. However, it would be useful to also
provide general variants that allow the caller to specify both the
candidate type(s) and the valid/accepted types. This commit adds
those variants.
Related: dogtagpki#3297
Signed-off-by: Fraser Tweedale <ftweedal@redhat.com>1 parent 5618b62 commit 674f467
File tree
1 file changed
+43
-7
lines changed- base/server/src/main/java/com/netscape/cms/servlet/base
1 file changed
+43
-7
lines changedLines changed: 43 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
105 | 111 | | |
| 112 | + | |
| 113 | + | |
106 | 114 | | |
107 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
108 | 123 | | |
109 | | - | |
110 | | - | |
| 124 | + | |
| 125 | + | |
111 | 126 | | |
112 | 127 | | |
113 | 128 | | |
114 | 129 | | |
115 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
116 | 140 | | |
| 141 | + | |
| 142 | + | |
117 | 143 | | |
118 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
119 | 155 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
123 | 159 | | |
124 | 160 | | |
125 | 161 | | |
| |||
0 commit comments