org.simpleframework.transport.Server Java Examples

The following examples show how to use org.simpleframework.transport.Server. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HttpWorkerTest.java    From office-365-connector-plugin with Apache License 2.0 5 votes vote down vote up
@BeforeClass
public static void setUp() throws IOException {
    Container container = new MyHandler();
    Server server = new ContainerServer(container);
    connection = new SocketConnection(server);
    SocketAddress address = new InetSocketAddress(8000);
    connection.connect(address);
}
 
Example #2
Source File: ValidatingHttpServer.java    From jersey-hmac-auth with Apache License 2.0 5 votes vote down vote up
public Connection connect() throws Exception {
    Server server = new ContainerServer(this);
    Connection connection = new SocketConnection(server);
    SocketAddress address = new InetSocketAddress(port);
    connection.connect(address);
    return connection;
}
 
Example #3
Source File: FixdServer.java    From fixd with Apache License 2.0 2 votes vote down vote up
public FixdServer(Server server) {
    
    this.server = server;
}