Class Connector
- java.lang.Object
-
- org.glassfish.webservices.transport.tcp.Connector
-
- All Implemented Interfaces:
com.sun.xml.ws.transport.tcp.server.WSTCPConnector
public class Connector extends Object implements com.sun.xml.ws.transport.tcp.server.WSTCPConnector
- Author:
- oleksiys
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intgetFrameSize()StringgetHost()com.sun.xml.ws.transport.tcp.server.TCPMessageListenergetListener()intgetPort()voidlisten()voidnotifyConnectionClosed(SocketChannel channel)voidprocess(ByteBuffer buffer, SocketChannel channel)voidsetFrameSize(int frameSize)voidsetHost(String host)voidsetListener(com.sun.xml.ws.transport.tcp.server.TCPMessageListener arg0)voidsetPort(int port)
-
-
-
Constructor Detail
-
Connector
public Connector(String host, int port, com.sun.xml.ws.transport.tcp.server.TCPMessageListener listener)
-
-
Method Detail
-
listen
public void listen() throws IOException- Specified by:
listenin interfacecom.sun.xml.ws.transport.tcp.server.WSTCPConnector- Throws:
IOException
-
process
public void process(ByteBuffer buffer, SocketChannel channel) throws IOException
- Throws:
IOException
-
notifyConnectionClosed
public void notifyConnectionClosed(SocketChannel channel)
-
getHost
public String getHost()
- Specified by:
getHostin interfacecom.sun.xml.ws.transport.tcp.server.WSTCPConnector
-
setHost
public void setHost(String host)
- Specified by:
setHostin interfacecom.sun.xml.ws.transport.tcp.server.WSTCPConnector
-
getPort
public int getPort()
- Specified by:
getPortin interfacecom.sun.xml.ws.transport.tcp.server.WSTCPConnector
-
setPort
public void setPort(int port)
- Specified by:
setPortin interfacecom.sun.xml.ws.transport.tcp.server.WSTCPConnector
-
getListener
public com.sun.xml.ws.transport.tcp.server.TCPMessageListener getListener()
- Specified by:
getListenerin interfacecom.sun.xml.ws.transport.tcp.server.WSTCPConnector
-
setListener
public void setListener(com.sun.xml.ws.transport.tcp.server.TCPMessageListener arg0)
- Specified by:
setListenerin interfacecom.sun.xml.ws.transport.tcp.server.WSTCPConnector
-
setFrameSize
public void setFrameSize(int frameSize)
- Specified by:
setFrameSizein interfacecom.sun.xml.ws.transport.tcp.server.WSTCPConnector
-
getFrameSize
public int getFrameSize()
- Specified by:
getFrameSizein interfacecom.sun.xml.ws.transport.tcp.server.WSTCPConnector
-
close
public void close()
- Specified by:
closein interfacecom.sun.xml.ws.transport.tcp.server.WSTCPConnector
-
-