1 17 package org.alfresco.filesys.smb.server; 18 19 import org.alfresco.filesys.smb.Dialect; 20 21 26 class ProtocolFactory 27 { 28 29 32 public ProtocolFactory() 33 { 34 super(); 35 } 36 37 44 protected static ProtocolHandler getHandler(int dialect) 45 { 46 47 49 ProtocolHandler handler = null; 50 51 switch (dialect) 52 { 53 54 56 case Dialect.Core: 57 case Dialect.CorePlus: 58 handler = new CoreProtocolHandler(); 59 break; 60 61 63 case Dialect.DOSLanMan1: 64 case Dialect.DOSLanMan2: 65 case Dialect.LanMan1: 66 case Dialect.LanMan2: 67 case Dialect.LanMan2_1: 68 handler = new LanManProtocolHandler(); 69 break; 70 71 73 case Dialect.NT: 74 handler = new NTProtocolHandler(); 75 break; 76 } 77 78 80 return handler; 81 } 82 } | Popular Tags |