1 28 29 package com.caucho.server.http; 30 31 import com.caucho.server.connection.Connection; 32 import com.caucho.server.port.Protocol; 33 import com.caucho.server.port.ServerRequest; 34 35 43 public class HttpProtocol extends Protocol { 44 static final String COPYRIGHT = 45 "Copyright (c) 1998-2006 Caucho Technology. All rights reserved."; 46 47 private String _protocolName = "http"; 48 49 52 public String getProtocolName() 53 { 54 return _protocolName; 55 } 56 57 60 public void setProtocolName(String name) 61 { 62 _protocolName = name; 63 } 64 65 68 public ServerRequest createRequest(Connection conn) 69 { 70 return new HttpRequest(getServer(), conn); 71 } 72 } 73 | Popular Tags |