blob: 3e2b69982bc768ab97682ee3274f7285380edb81 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Server Types</title>
<style type="text/css">@import url("../../book.css");</style>
<style type="text/css">@import url("../../schema.css");</style>
</HEAD>
<BODY>
<H1 style="text-align:center">Server Types</H1>
<p></p>
<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.wst.server.core.serverTypes<p></p>
<h6 class="CaptionFigColumn SchemaHeader">Since: </h6>1.0
<p></p>
<h6 class="CaptionFigColumn SchemaHeader">Description: </h6>This extension point is used to provide support for a new server type.<p></p>
<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6>
<p></p>
<p class="code SchemaDtd">&lt;!ELEMENT <a name="e.extension">extension</a> (<a href="#e.serverType">serverType</a>+)&gt;</p>
<p class="code SchemaDtd">&lt;!ATTLIST extension</p>
<p class="code SchemaDtdAttlist">point&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">name&nbsp;&nbsp;CDATA #IMPLIED&gt;</p>
<p></p>
<ul class="ConfigMarkupAttlistDesc">
<li><b>point</b> - a fully qualified identifier of the target extension point</li>
<li><b>id</b> - an optional identifier of the extension instance</li>
<li><b>name</b> - an optional name of the extension instance</li>
</ul>
<br><p class="code SchemaDtd">&lt;!ELEMENT <a name="e.serverType">serverType</a> EMPTY&gt;</p>
<p class="code SchemaDtd">&lt;!ATTLIST serverType</p>
<p class="code SchemaDtdAttlist">id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">class&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">behaviourClass&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">hasConfiguration&nbsp;&nbsp;&nbsp;&nbsp;(true | false) <p class="code SchemaDtdAttlist">runtimeTypeId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #REQUIRED<p class="code SchemaDtdAttlist">launchConfigId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">supportsRemoteHosts&nbsp;(true | false) <p class="code SchemaDtdAttlist">runtime&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(true | false) <p class="code SchemaDtdAttlist">launchModes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">initialState&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">startTimeout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">stopTimeout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CDATA #IMPLIED<p class="code SchemaDtdAttlist">startBeforePublish&nbsp;&nbsp;(true | false) &gt;</p>
<p></p>
<ul class="ConfigMarkupAttlistDesc">
<li><b>id</b> - unique identifier for the server type</li>
<li><b>name</b> - a translatable name used to identify this server type</li>
<li><b>description</b> - a translatable description of this server type</li>
<li><b>class</b> - specifies the fully qualified name of the Java class that extends <samp>org.eclipse.wst.server.core.model.ServerDelegate</samp>.
Server instances of this type will delegate to instances of this class. Delegates must also have a public 0-arg constructor</li>
<li><b>behaviourClass</b> - specifies the fully qualified name of the Java class that implements <samp>org.eclipse.wst.server.core.model.ServerBehaviourDelegate</samp>.
Server instances of this type will delegate to instances of this class. Delegates must also have a public 0-arg constructor</li>
<li><b>hasConfiguration</b> - true if this server has server configuration files</li>
<li><b>runtimeTypeId</b> - the runtime type id that this server type corresponds to</li>
<li><b>launchConfigId</b> - the launch configuration id for the launch configuration that is able to start this server</li>
<li><b>supportsRemoteHosts</b> - true if this server type can work with remote host names, false if this server type can only work on localhost. if unspecified, false is assumed</li>
<li><b>runtime</b> - true if this server requires a runtime, and false otherwise</li>
<li><b>launchModes</b> - a comma separated list of the launch modes that this server supports</li>
<li><b>initialState</b> - the intial state of the server, either "started", or "stopped". if this attribute is not specified, the server state will be "unknown"</li>
<li><b>startTimeout</b> - the timeout value (in ms) that the tool will wait for the server to be started. The default is 2 minutes</li>
<li><b>stopTimeout</b> - the timeout value (in ms) that the tool will wait for the server to be stopped. The default is 2 minutes</li>
<li><b>startBeforePublish</b> - boolean value "true" or "false" to specify whether the server needs to be started for publishing to occur. If "true", the server will be started on every call to publish() before executing the publish code</li>
</ul>
<br><h6 class="CaptionFigColumn SchemaHeader">Examples: </h6>The following is an example of a server type extension point:
<pre class="Example"><span class="code SchemaTag">
&lt;extension
point=</span><span class="code SchemaCstring">&quot;org.eclipse.wst.server.core.serverTypes&quot;</span><span class="code SchemaTag">&gt;
&lt;serverType
id=</span><span class="code SchemaCstring">&quot;com.example.serverType&quot;</span><span class="code SchemaTag">
name=</span><span class="code SchemaCstring">&quot;%serverTypeName&quot;</span><span class="code SchemaTag">
description=</span><span class="code SchemaCstring">&quot;%serverTypeDescription&quot;</span><span class="code SchemaTag">
supportsRemoteHosts=</span><span class="code SchemaCstring">&quot;true&quot;</span><span class="code SchemaTag">
runtime=</span><span class="code SchemaCstring">&quot;true&quot;</span><span class="code SchemaTag">
initialState=</span><span class="code SchemaCstring">&quot;stopped&quot;</span><span class="code SchemaTag">
hasConfiguration=</span><span class="code SchemaCstring">&quot;true&quot;</span><span class="code SchemaTag">
launchConfigId=</span><span class="code SchemaCstring">&quot;com.example.launchConfigurationType&quot;</span><span class="code SchemaTag">
runtimeTypeId=</span><span class="code SchemaCstring">&quot;com.example.runtime&quot;</span><span class="code SchemaTag">
class=</span><span class="code SchemaCstring">&quot;com.example.ExampleServerDelegate&quot;</span><span class="code SchemaTag">
behaviourClass=</span><span class="code SchemaCstring">&quot;com.example.ExampleServerBehaviourDelegate&quot;</span><span class="code SchemaTag">/&gt;
&lt;/extension&gt;
</span></pre>
<p></p>
<br>
<p class="note SchemaCopyright">
Copyright (c) 2000, 2005 IBM Corporation and others.<br>
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
<a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
</p>
</BODY>
</HTML>