blob: d959845ead93e18e77ac76a19e3c7e543c26d66a [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SimpleAxisServer (Apache Axis)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="SimpleAxisServer (Apache Axis)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/SimpleAxisServer.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/axis/transport/http/ServletEndpointContextImpl.html" title="class in org.apache.axis.transport.http"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/axis/transport/http/SimpleAxisWorker.html" title="class in org.apache.axis.transport.http"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/axis/transport/http/SimpleAxisServer.html" target="_top">Frames</a></li>
<li><a href="SimpleAxisServer.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.axis.transport.http</div>
<h2 title="Class SimpleAxisServer" class="title">Class SimpleAxisServer</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.axis.transport.http.SimpleAxisServer</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">SimpleAxisServer</span>
extends <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a></pre>
<div class="block">This is a simple implementation of an HTTP server for processing
SOAP requests via Apache's xml-axis. This is not intended for production
use. Its intended uses are for demos, debugging, and performance
profiling.
Note this classes uses static objects to provide a thread pool, so you should
not use multiple instances of this class in the same JVM/classloader unless
you want bad things to happen at shutdown.</div>
<dl><dt><span class="strong">Author:</span></dt>
<dd>Sam Ruby (ruby@us.ibm.com), Rob Jellinghaus (robj@unrealities.com), Alireza Taherkordi (a_taherkordi@users.sourceforge.net)</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static org.apache.commons.logging.Log</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#log">log</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#MAX_SESSIONS_DEFAULT">MAX_SESSIONS_DEFAULT</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#sessionIndex">sessionIndex</a></strong></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#SimpleAxisServer()">SimpleAxisServer</a></strong>()</code>
<div class="block">create a server with the default threads and sessions.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#SimpleAxisServer(int)">SimpleAxisServer</a></strong>(int&nbsp;maxPoolSize)</code>
<div class="block">Create a server with a configurable pool side; sessions set to the default
limit</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#SimpleAxisServer(int,%20int)">SimpleAxisServer</a></strong>(int&nbsp;maxPoolSize,
int&nbsp;maxSessions)</code>
<div class="block">Constructor</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/axis/session/Session.html" title="interface in org.apache.axis.session">Session</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#createSession(java.lang.String)">createSession</a></strong>(<a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;cooky)</code>
<div class="block">demand create a session if there is not already one for the string</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#finalize()">finalize</a></strong>()</code>
<div class="block">stop the server if not already told to.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/axis/server/AxisServer.html" title="class in org.apache.axis.server">AxisServer</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#getAxisServer()">getAxisServer</a></strong>()</code>
<div class="block">demand create an axis server; return an existing one if one exists.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#getDoThreads()">getDoThreads</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#getMaxSessions()">getMaxSessions</a></strong>()</code>
<div class="block">get max session count</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/axis/EngineConfiguration.html" title="interface in org.apache.axis">EngineConfiguration</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#getMyConfig()">getMyConfig</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/axis/components/threadpool/ThreadPool.html" title="class in org.apache.axis.components.threadpool">ThreadPool</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#getPool()">getPool</a></strong>()</code>
<div class="block">get the thread pool</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/net/ServerSocket.html?is-external=true" title="class or interface in java.net">ServerSocket</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#getServerSocket()">getServerSocket</a></strong>()</code>
<div class="block">Obtain the serverSocket that that SimpleAxisServer is listening on.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#isSessionUsed()">isSessionUsed</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#main(java.lang.String[])">main</a></strong>(<a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;args)</code>
<div class="block">Server process.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#run()">run</a></strong>()</code>
<div class="block">Accept requests from a given TCP port and send them through the
Axis engine for processing.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#setDoThreads(boolean)">setDoThreads</a></strong>(boolean&nbsp;value)</code>
<div class="block">turn threading on or off.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#setMaxSessions(int)">setMaxSessions</a></strong>(int&nbsp;maxSessions)</code>
<div class="block">Resize the session map</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#setMyConfig(org.apache.axis.EngineConfiguration)">setMyConfig</a></strong>(<a href="../../../../../org/apache/axis/EngineConfiguration.html" title="interface in org.apache.axis">EngineConfiguration</a>&nbsp;myConfig)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#setServerSocket(java.net.ServerSocket)">setServerSocket</a></strong>(<a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/net/ServerSocket.html?is-external=true" title="class or interface in java.net">ServerSocket</a>&nbsp;serverSocket)</code>
<div class="block">Set the serverSocket this server should listen on.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#start()">start</a></strong>()</code>
<div class="block">Start this server as a NON-daemon.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#start(boolean)">start</a></strong>(boolean&nbsp;daemon)</code>
<div class="block">Start this server.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/axis/transport/http/SimpleAxisServer.html#stop()">stop</a></strong>()</code>
<div class="block">Stop this server.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="log">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>log</h4>
<pre>protected static&nbsp;org.apache.commons.logging.Log log</pre>
</li>
</ul>
<a name="MAX_SESSIONS_DEFAULT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MAX_SESSIONS_DEFAULT</h4>
<pre>public static final&nbsp;int MAX_SESSIONS_DEFAULT</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.axis.transport.http.SimpleAxisServer.MAX_SESSIONS_DEFAULT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="sessionIndex">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>sessionIndex</h4>
<pre>public static&nbsp;int sessionIndex</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="SimpleAxisServer()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SimpleAxisServer</h4>
<pre>public&nbsp;SimpleAxisServer()</pre>
<div class="block">create a server with the default threads and sessions.</div>
</li>
</ul>
<a name="SimpleAxisServer(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SimpleAxisServer</h4>
<pre>public&nbsp;SimpleAxisServer(int&nbsp;maxPoolSize)</pre>
<div class="block">Create a server with a configurable pool side; sessions set to the default
limit</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>maxPoolSize</code> - maximum thread pool size</dd></dl>
</li>
</ul>
<a name="SimpleAxisServer(int, int)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SimpleAxisServer</h4>
<pre>public&nbsp;SimpleAxisServer(int&nbsp;maxPoolSize,
int&nbsp;maxSessions)</pre>
<div class="block">Constructor</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>maxPoolSize</code> - max number of threads</dd><dd><code>maxSessions</code> - maximum sessions</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getPool()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPool</h4>
<pre>public static&nbsp;<a href="../../../../../org/apache/axis/components/threadpool/ThreadPool.html" title="class in org.apache.axis.components.threadpool">ThreadPool</a>&nbsp;getPool()</pre>
<div class="block">get the thread pool</div>
<dl><dt><span class="strong">Returns:</span></dt><dd></dd></dl>
</li>
</ul>
<a name="finalize()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>finalize</h4>
<pre>protected&nbsp;void&nbsp;finalize()
throws <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></pre>
<div class="block">stop the server if not already told to.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></dd></dl>
</li>
</ul>
<a name="getMaxSessions()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxSessions</h4>
<pre>public&nbsp;int&nbsp;getMaxSessions()</pre>
<div class="block">get max session count</div>
<dl><dt><span class="strong">Returns:</span></dt><dd></dd></dl>
</li>
</ul>
<a name="setMaxSessions(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxSessions</h4>
<pre>public&nbsp;void&nbsp;setMaxSessions(int&nbsp;maxSessions)</pre>
<div class="block">Resize the session map</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>maxSessions</code> - maximum sessions</dd></dl>
</li>
</ul>
<a name="isSessionUsed()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSessionUsed</h4>
<pre>protected&nbsp;boolean&nbsp;isSessionUsed()</pre>
</li>
</ul>
<a name="setDoThreads(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDoThreads</h4>
<pre>public&nbsp;void&nbsp;setDoThreads(boolean&nbsp;value)</pre>
<div class="block">turn threading on or off. This sets a static value</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - </dd></dl>
</li>
</ul>
<a name="getDoThreads()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDoThreads</h4>
<pre>public&nbsp;boolean&nbsp;getDoThreads()</pre>
</li>
</ul>
<a name="getMyConfig()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMyConfig</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/axis/EngineConfiguration.html" title="interface in org.apache.axis">EngineConfiguration</a>&nbsp;getMyConfig()</pre>
</li>
</ul>
<a name="setMyConfig(org.apache.axis.EngineConfiguration)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMyConfig</h4>
<pre>public&nbsp;void&nbsp;setMyConfig(<a href="../../../../../org/apache/axis/EngineConfiguration.html" title="interface in org.apache.axis">EngineConfiguration</a>&nbsp;myConfig)</pre>
</li>
</ul>
<a name="createSession(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createSession</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/axis/session/Session.html" title="interface in org.apache.axis.session">Session</a>&nbsp;createSession(<a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;cooky)</pre>
<div class="block">demand create a session if there is not already one for the string</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>cooky</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>a session.</dd></dl>
</li>
</ul>
<a name="getAxisServer()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAxisServer</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/axis/server/AxisServer.html" title="class in org.apache.axis.server">AxisServer</a>&nbsp;getAxisServer()</pre>
<div class="block">demand create an axis server; return an existing one if one exists.
The configuration for the axis server is derived from #myConfig if not null,
the default config otherwise.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd></dd></dl>
</li>
</ul>
<a name="run()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>run</h4>
<pre>public&nbsp;void&nbsp;run()</pre>
<div class="block">Accept requests from a given TCP port and send them through the
Axis engine for processing.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Runnable.html?is-external=true#run()" title="class or interface in java.lang">run</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a></code></dd>
</dl>
</li>
</ul>
<a name="getServerSocket()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getServerSocket</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/net/ServerSocket.html?is-external=true" title="class or interface in java.net">ServerSocket</a>&nbsp;getServerSocket()</pre>
<div class="block">Obtain the serverSocket that that SimpleAxisServer is listening on.</div>
</li>
</ul>
<a name="setServerSocket(java.net.ServerSocket)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setServerSocket</h4>
<pre>public&nbsp;void&nbsp;setServerSocket(<a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/net/ServerSocket.html?is-external=true" title="class or interface in java.net">ServerSocket</a>&nbsp;serverSocket)</pre>
<div class="block">Set the serverSocket this server should listen on.
(note : changing this will not affect a running server, but if you
stop() and then start() the server, the new socket will be used).</div>
</li>
</ul>
<a name="start(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>start</h4>
<pre>public&nbsp;void&nbsp;start(boolean&nbsp;daemon)
throws <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start this server.
Spawns a worker thread to listen for HTTP requests.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>daemon</code> - a boolean indicating if the thread should be a daemon.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
</li>
</ul>
<a name="start()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>start</h4>
<pre>public&nbsp;void&nbsp;start()
throws <a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start this server as a NON-daemon.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd></dl>
</li>
</ul>
<a name="stop()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stop</h4>
<pre>public&nbsp;void&nbsp;stop()</pre>
<div class="block">Stop this server. Can be called safely if the system is already stopped,
or if it was never started.
This will interrupt any pending accept().</div>
</li>
</ul>
<a name="main(java.lang.String[])">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>main</h4>
<pre>public static&nbsp;void&nbsp;main(<a href="http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;args)</pre>
<div class="block">Server process.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/SimpleAxisServer.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/axis/transport/http/ServletEndpointContextImpl.html" title="class in org.apache.axis.transport.http"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/axis/transport/http/SimpleAxisWorker.html" title="class in org.apache.axis.transport.http"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/axis/transport/http/SimpleAxisServer.html" target="_top">Frames</a></li>
<li><a href="SimpleAxisServer.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p>
</body>
</html>