Package org.jdrupes.httpcodec
Class Engine
java.lang.Object
org.jdrupes.httpcodec.Engine
- Direct Known Subclasses:
ClientEngine
,ServerEngine
Represents an engine with an associated encoder and decoder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
setSwitchedTo
(String protocol) Noted that the engine has been switched to a new protocol.Returns the protocol that this engine has been switched to, if any.
-
Constructor Details
-
Engine
public Engine()
-
-
Method Details
-
switchedTo
Returns the protocol that this engine has been switched to, if any.- Returns:
- the protocol
-
setSwitchedTo
Noted that the engine has been switched to a new protocol.- Parameters:
protocol
- the new protocol
-