Author: bfitzpat
Date: 2012-05-16 15:24:17 -0400 (Wed, 16 May 2012)
New Revision: 41082
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/dialogs/WSTesterURLInputsDialog.java
Log:
JBIDE-11728 - Fixing issue with missing / in http:/ when testing JAX-RS methods with parms
(also handling https)
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/dialogs/WSTesterURLInputsDialog.java
===================================================================
---
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/dialogs/WSTesterURLInputsDialog.java 2012-05-16
19:22:42 UTC (rev 41081)
+++
trunk/ws/plugins/org.jboss.tools.ws.ui/src/org/jboss/tools/ws/ui/dialogs/WSTesterURLInputsDialog.java 2012-05-16
19:24:17 UTC (rev 41082)
@@ -101,8 +101,11 @@
modified = modified.replace("//", "/"); //$NON-NLS-1$
//$NON-NLS-2$
// fix JBIDE-11728
- modified = modified.replace("http:/", "http://"); //$NON-NLS-1$
//$NON-NLS-2$
- modified = modified.replace("https:/", "https://"); //$NON-NLS-1$
//$NON-NLS-2$
+ if (modified.startsWith("http:/") &&
!modified.startsWith("http://")) { //$NON-NLS-1$ //$NON-NLS-2$
+ modified = modified.replace("http:/", "http://"); //$NON-NLS-1$
//$NON-NLS-2$
+ } else if (modified.startsWith("https:/") &&
!modified.startsWith("https://")) { //$NON-NLS-1$ //$NON-NLS-2$
+ modified = modified.replace("https:/", "https://"); //$NON-NLS-1$
//$NON-NLS-2$
+ }
return modified;
}
Show replies by date