com.sun.enterprise.web.portunif
Class PortUnificationPipeline
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<Task>
com.sun.enterprise.web.connector.grizzly.LinkedListPipeline
com.sun.enterprise.web.connector.grizzly.ssl.SSLPipeline
com.sun.enterprise.web.portunif.PortUnificationPipeline
- All Implemented Interfaces:
- Pipeline, Serializable, Cloneable, Iterable<Task>, Collection<Task>, Deque<Task>, List<Task>, Queue<Task>
public class PortUnificationPipeline
- extends SSLPipeline
This Pipeline goal is to try to determine the TCP protocol used
(http, soap, https, etc.). First, all ProtocolFinder are executed
trying to determine which protocol is used. Once the protocol is found, the
associated ProtocolHandler.
You can add ProtocolHandler and ProtocolFinder by doing
(from a SelectorThread)
SelectorThread st = SelectorThread.getSelector(port);
PortUnificationPipeline php = (PortUnificationPipeline)st.getReadPipeline();
php.addProtocolFinder(..);
php.addProtocolHandler(...);
- Author:
- Jeanfrancois Arcand
- See Also:
- Serialized Form
| Fields inherited from class com.sun.enterprise.web.connector.grizzly.LinkedListPipeline |
isStarted, maxQueueSizeInBytes, maxThreads, minSpareThreads, minThreads, name, pipelineStat, port, priority, threadCount, threadsIncrement, threadsTimeout, waitingThreads, workerThreads |
| Methods inherited from class com.sun.enterprise.web.connector.grizzly.LinkedListPipeline |
getCurrentThreadCount, getCurrentThreadsBusy, getMaxSpareThreads, getMaxThreads, getMinSpareThreads, getName, getPipelineStatistic, getQueueSizeInBytes, getTask, getTaskQueuedCount, getWaitingThread, initPipeline, interruptThread, isEmpty, setMaxThreads, setMinSpareThreads, setMinThreads, setName, setPipelineStatistic, setPort, setPriority, setQueueSizeInBytes, setThreadsIncrement, setThreadsTimeout, startPipeline, stopPipeline, toString |
| Methods inherited from class java.util.LinkedList |
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArray |
| Methods inherited from interface com.sun.enterprise.web.connector.grizzly.Pipeline |
size |
PROTOCOL_FINDERS
public static final String PROTOCOL_FINDERS
- See Also:
- Constant Field Values
PROTOCOL_HANDLERS
public static final String PROTOCOL_HANDLERS
- See Also:
- Constant Field Values
PortUnificationPipeline
public PortUnificationPipeline()
addTask
public void addTask(Task task)
- Seek for the TCP protocol used. First all ProtocolFinder will be invoked.
If the protocol is found, the associated ProtocolHandler will be executed.
The execution of this method will occurs on the same thread and the
main Selector (SelectorThread).
- Specified by:
addTask in interface Pipeline- Overrides:
addTask in class LinkedListPipeline
- Parameters:
task - An implementation of ReadTask
expireKey
public boolean expireKey(SelectionKey key)
- Invoked when the SelectorThread is about to expire a SelectionKey.
- Specified by:
expireKey in interface Pipeline- Overrides:
expireKey in class LinkedListPipeline
- Returns:
- true if the SelectorThread should expire the SelectionKey, false
if not.
addProtocolFinder
public void addProtocolFinder(ProtocolFinder protocolFinder)
- Add an instance of
ProtocolFinder
addProtocolHandler
public void addProtocolHandler(ProtocolHandler protocolHandler)
- Add an instance of
ProtocolHandler
removeProtocolFinder
public void removeProtocolFinder(ProtocolFinder protocolFinder)
- Remove a
ProtocolFinder
removeProtocolHandler
public void removeProtocolHandler(ProtocolHandler protocolHandler)
- Remove a
ProtocolHandler
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.