Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/JettyRunnable.java')
-rw-r--r--core/bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/JettyRunnable.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/core/bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/JettyRunnable.java b/core/bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/JettyRunnable.java
new file mode 100644
index 000000000..1fbe68728
--- /dev/null
+++ b/core/bundles/org.eclipse.wst.ws.explorer/src/org/eclipse/wst/ws/internal/explorer/JettyRunnable.java
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * Copyright (c) 2002, 2005 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.wst.ws.internal.explorer;
+
+public class JettyRunnable {
+
+ private static JettyRunnable jettyRunnable_;
+
+ private JettyRunnable() {
+ }
+
+ public static JettyRunnable getJettyRunnable() {
+ if (jettyRunnable_ == null) {
+ jettyRunnable_ = new JettyRunnable();
+ jettyRunnable_.init();
+ }
+ return jettyRunnable_;
+ }
+
+ public int getJettyPort() {
+ return WebappManager.getPort();
+ }
+
+ public String getJettyHost() {
+ return WebappManager.getHost();
+ }
+
+
+ private void init() {
+ try {
+ WebappManager.start("wse");
+ } catch (Throwable t) {
+ }
+ }
+}

Back to the top