public abstract class Acceptor extends Container<IConnector> implements InternalAcceptor
| Modifier and Type | Class and Description |
|---|---|
static interface |
Acceptor.ConnectorPreparer |
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>ILifecycle.DeferrableActivation| Constructor and Description |
|---|
Acceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnector(InternalConnector connector) |
void |
close() |
protected void |
doBeforeActivate() |
protected void |
doDeactivate() |
IConnector[] |
getAcceptedConnectors()
Returns an array of the connectors that have been accepted by this acceptor and not been closed since.
|
ITransportConfig |
getConfig()
Returns the current transport configuration if there is one, a new empty one otherwise.
|
Acceptor.ConnectorPreparer |
getConnectorPreparer() |
IConnector[] |
getElements() |
INegotiator |
getNegotiator() |
boolean |
isClosed() |
boolean |
isEmpty() |
void |
prepareConnector(InternalConnector connector) |
void |
removeConnector(IConnector connector) |
void |
setConfig(ITransportConfig config)
Sets a new transport configuration by copying the given one.
|
void |
setConnectorPreparer(Acceptor.ConnectorPreparer connectorPreparer) |
void |
setNegotiator(INegotiator negotiator) |
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEventactivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic ITransportConfig getConfig()
ITransportConfigAwaregetConfig in interface ITransportConfigAwarepublic void setConfig(ITransportConfig config)
ITransportConfigAwaresetConfig in interface ITransportConfigAwarepublic Acceptor.ConnectorPreparer getConnectorPreparer()
public void setConnectorPreparer(Acceptor.ConnectorPreparer connectorPreparer)
public INegotiator getNegotiator()
getNegotiator in interface INegotiatorAwarepublic void setNegotiator(INegotiator negotiator)
setNegotiator in interface INegotiatorAwarepublic IConnector[] getAcceptedConnectors()
IAcceptorgetAcceptedConnectors in interface IAcceptorpublic boolean isEmpty()
isEmpty in interface IContainer<IConnector>isEmpty in class Container<IConnector>public IConnector[] getElements()
getElements in interface IContainer<IConnector>public void prepareConnector(InternalConnector connector)
public void addConnector(InternalConnector connector)
public void removeConnector(IConnector connector)
protected void doBeforeActivate()
throws java.lang.Exception
doBeforeActivate in class Lifecyclejava.lang.Exceptionprotected void doDeactivate()
throws java.lang.Exception
doDeactivate in class Lifecyclejava.lang.ExceptionCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) 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