Package com.bytedesk.call.mrcp4j.server
Class MrcpServerSocket
java.lang.Object
com.bytedesk.call.mrcp4j.server.MrcpServerSocket
- Author:
- Niels Godfredsen <ngodfredsen@users.sourceforge.net>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.mina.core.service.IoAcceptorprivate intprivate MrcpRequestProcessorImplprivate static MrcpCodecFactory -
Constructor Summary
ConstructorsConstructorDescriptionMrcpServerSocket(int port) Creates a MRCP server socket, bound to the specified port -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseChannel(String channelID) voiddispose()intgetPort()TODOCstatic voidprivate voidopenChannel(String channelID, MrcpRequestHandler requestHandler) voidopenChannel(String channelID, RecogOnlyRequestHandler requestHandler) voidopenChannel(String channelID, RecorderRequestHandler requestHandler) voidopenChannel(String channelID, SpeakVerifyRequestHandler requestHandler) voidopenChannel(String channelID, SpeechSynthRequestHandler requestHandler) voidopenChannel(String channelID, VoiceEnrollmentRequestHandler requestHandler) private static voidvalidateChannelID(String channelID, MrcpResourceType[] expected)
-
Field Details
-
CODEC_FACTORY
-
_requestProcessorImpl
-
_acceptor
private org.apache.mina.core.service.IoAcceptor _acceptor -
_port
private int _port
-
-
Constructor Details
-
MrcpServerSocket
Creates a MRCP server socket, bound to the specified port- Parameters:
port- the port number to bind to- Throws:
IOException- if an I/O error occurs when opening the socket.
-
-
Method Details
-
getPort
public int getPort()TODOC- Returns:
- Returns the port.
-
openChannel
-
openChannel
-
openChannel
-
openChannel
-
openChannel
-
validateChannelID
-
openChannel
-
closeChannel
-
dispose
public void dispose() -
main
- Throws:
Exception
-