1 23 24 package com.sun.enterprise.server.ss; 25 26 import java.io.IOException ; 27 import java.net.ServerSocket ; 28 import java.net.Socket ; 29 import java.nio.channels.ServerSocketChannel ; 30 import java.nio.channels.SocketChannel ; 31 import com.sun.enterprise.server.ss.spi.ASSocketServiceFacade; 32 33 49 public class ASSocketServiceProxy implements ASSocketServiceFacade{ 50 51 public void clientSocketConnected(Socket s) { 52 ASSocketService.clientSocketConnected(s); 53 } 54 55 public boolean isServerStartingUp(int port) { 56 return ASSocketService.isServerStartingUp(port); 57 } 58 59 public boolean close(int port, ServerSocket sock, ServerSocketChannel channel) throws IOException { 60 return ASSocketService.close(port, sock, channel); 61 } 62 63 public void waitOnAccept(Socket s) { 64 ASSocketService.waitOnAccept(s); 65 } 66 67 public boolean isLocalClient(Socket s) { 68 return ASSocketService.isLocalClient(s); 69 } 70 71 public boolean exists(int port) { 72 return ASSocketService.exists(port); 73 } 74 75 public void removeListeningSelector(int port) { 76 ASSocketService.removeListeningSelector(port); 77 } 78 79 public void waitOnAccept(SocketChannel sc) { 80 ASSocketService.waitOnAccept(sc); 81 } 82 83 public ServerSocketChannel getServerSocketChannel(int port) { 84 return ASSocketService.getServerSocketChannel(port); 85 } 86 87 public ServerSocket getServerSocket(int port) { 88 return ASSocketService.getServerSocket(port); 89 } 90 91 public boolean socketServiceNotified(int port) { 92 return ASSocketService.socketServiceNotified(port); 93 } 94 95 public void waitOnClientConnection(Socket s) { 96 ASSocketService.waitOnClientConnection(s); 97 } 98 99 } 100 | Popular Tags |