blob: 0ad623f95c31a6659bb43a0f79d6956f46d369b5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/**********************************************************************
* Copyright (c) 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
package org.eclipse.jst.server.tomcat.core;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.model.IProcess;
import org.eclipse.wst.server.core.model.IURLProvider;
/**
*
*/
public interface ITomcatServer extends IURLProvider {
public static final String PROPERTY_SECURE = "secure";
public static final String PROPERTY_DEBUG = "debug";
public static final String PROPERTY_TEST_ENVIRONMENT = "testEnvironment";
/**
* Returns <code>true</code> if the server is set to run in Tomcat debug mode, and
* <code>false</code> otherwise.
* This feature only works with Tomcat v4.0.
*
* @return boolean
*/
public boolean isDebug();
/**
* Returns true if the process is set to run in secure mode.
*
* @return boolean
*/
public boolean isSecure();
/**
* Returns true if this is a test (publish and run code out of the
* workbench) environment server.
*
* @return boolean
*/
public boolean isTestEnvironment();
/**
* Returns the main class that is used to launch the Tomcat server.
*
* @return
*/
public String getRuntimeClass();
/**
* Set the process that is monitored for Tomcat startup and shutdown.
* Warning: Do not call this method unless you know what you're doing;
* it should only be used in rare cases.
*
* @param newProcess
*/
public void setProcess(IProcess newProcess);
/**
* Setup for starting the server.
*
* @param launch ILaunch
* @param launchMode String
* @param monitor IProgressMonitor
*/
public void setupLaunch(ILaunch launch, String launchMode, IProgressMonitor monitor) throws CoreException;
}
|