Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Auge2016-07-07 02:31:02 +0000
committerThomas Watson2016-08-18 18:24:31 +0000
commit6bfd9bef40482dd0e0766758bbdd1f29e562b99e (patch)
treec20f10ca1c72a572787214c735dd8e9967749840 /bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/context/DispatchTargets.java
parent51197e523ee8f565d365d81e056001e989d9cfe2 (diff)
downloadrt.equinox.bundles-6bfd9bef40482dd0e0766758bbdd1f29e562b99e.tar.gz
rt.equinox.bundles-6bfd9bef40482dd0e0766758bbdd1f29e562b99e.tar.xz
rt.equinox.bundles-6bfd9bef40482dd0e0766758bbdd1f29e562b99e.zip
Bug 497435 - [http servlet] performance optimizations, CPU and memoryY20160825-1000I20160824-1429I20160823-1359I20160823-0759
https://issues.liferay.com/browse/LPS-66801 https://issues.liferay.com/browse/LPS-66813 https://issues.liferay.com/browse/LPS-66827 https://issues.liferay.com/browse/LPS-66847 https://issues.liferay.com/browse/LPS-66881 https://issues.liferay.com/browse/LPS-66903 https://issues.liferay.com/browse/LPS-66904 https://issues.liferay.com/browse/LPS-66908 https://issues.liferay.com/browse/LPS-66911 https://issues.liferay.com/browse/LPS-66959 Change-Id: I0374bfa5d566c2f01d34af57a64fd982b92ba4b8 Signed-off-by: shuyangzhou <shuyang.zhou@liferay.com> Signed-off-by: Matthew Tambara <matthew.tambara@liferay.com> Signed-off-by: Raymond Auge <raymond.auge@liferay.com> Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/context/DispatchTargets.java')
-rw-r--r--bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/context/DispatchTargets.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/context/DispatchTargets.java b/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/context/DispatchTargets.java
index 903166f77..6e30ca04a 100644
--- a/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/context/DispatchTargets.java
+++ b/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/context/DispatchTargets.java
@@ -54,8 +54,6 @@ public class DispatchTargets {
this.servletPath = (servletPath == null) ? Const.BLANK : servletPath;
this.pathInfo = pathInfo;
this.queryString = queryString;
-
- this.string = SIMPLE_NAME + '[' + contextController.getFullContextPath() + requestURI + (queryString != null ? '?' + queryString : "") + ", " + endpointRegistration.toString() + ']'; //$NON-NLS-1$ //$NON-NLS-2$
}
public void addRequestParameters(HttpServletRequest request) {
@@ -197,7 +195,15 @@ public class DispatchTargets {
@Override
public String toString() {
- return string;
+ String value = string;
+
+ if (value == null) {
+ value = SIMPLE_NAME + '[' + contextController.getFullContextPath() + requestURI + (queryString != null ? '?' + queryString : "") + ", " + endpointRegistration.toString() + ']'; //$NON-NLS-1$
+
+ string = value;
+ }
+
+ return value;
}
private static Map<String, String[]> queryStringToParameterMap(String queryString) {
@@ -266,6 +272,6 @@ public class DispatchTargets {
private final String servletPath;
private final String servletName;
private final Map<String, Object> specialOverides = new ConcurrentHashMap<String, Object>();
- private final String string;
+ private String string;
} \ No newline at end of file

Back to the top