Skip to content

Commit 7cf9014

Browse files
author
Johnny
committed
add getPatchDetail method
Former-commit-id: 5cb6961995c6bfdf49dbba05dfa956e044d2e468
1 parent 992e1df commit 7cf9014

File tree

1 file changed

+27
-0
lines changed
  • src/main/java/com/oracle/weblogicx/imagebuilder/builder/util

1 file changed

+27
-0
lines changed

src/main/java/com/oracle/weblogicx/imagebuilder/builder/util/ARUUtil.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,33 @@ public static boolean validatePatches(List<String> patches, String category, Str
205205
return false;
206206
}
207207

208+
/**
209+
* Return the patch detail
210+
* @param category wls or fmw
211+
* @param version version of the product
212+
* @param bugNumber bug number
213+
* @param userId user id for support
214+
* @param password password for support
215+
* @return dom document detail about the patch
216+
* @throws IOException when something goes wrong
217+
*/
218+
public static Document getPatchDetail(String category, String version, String bugNumber, String userId, String
219+
password)
220+
throws
221+
IOException {
222+
223+
String releaseNumber = getReleaseNumber(category, version, userId, password );
224+
String url;
225+
if ("wls".equalsIgnoreCase(category))
226+
url = String.format(PATCH_SEARCH_URL, WLS_PROD_ID, bugNumber, releaseNumber);
227+
else
228+
url = String.format(PATCH_SEARCH_URL, FMW_PROD_ID, bugNumber, releaseNumber);
229+
230+
return HttpUtil.getXMLContent(url, userId, password);
231+
232+
}
233+
234+
208235
private static Document getAllReleases(String category, String userId, String password) throws IOException {
209236

210237

0 commit comments

Comments
 (0)