1 29 30 package com.caucho.server.port; 31 32 import com.caucho.server.connection.Connection; 33 import com.caucho.server.dispatch.DispatchServer; 34 35 38 public class Protocol implements RequestFactory { 39 private DispatchServer _server; 41 42 private Port _port; 44 45 private String _name = "tcp"; 47 48 51 public void setParent(Port port) 52 { 53 _port = port; 54 55 setServer(port.getServer()); 56 } 57 58 61 public void setProtocolName(String name) 62 { 63 _name = name; 64 } 65 66 69 public String getProtocolName() 70 { 71 return _name; 72 } 73 74 77 public Port getPort() 78 { 79 return _port; 80 } 81 82 85 public void setServer(DispatchServer server) 86 { 87 _server = server; 88 } 89 90 93 public DispatchServer getServer() 94 { 95 return _server; 96 } 97 98 101 public void addText(String name) 102 { 103 setProtocolName(name); 104 } 105 106 109 public ServerRequest createRequest(Connection conn) 110 { 111 throw new UnsupportedOperationException (); 112 } 113 } 114 | Popular Tags |