public static AccessLog . Format convertNCSAFormat ( String name ) { if ( null == name ) { return AccessLog . Format . COMMON ; } AccessLog . Format format = AccessLog . Format . COMMON ; String test = name . trim ( ) . toLowerCase ( ) ; if ( "combined" . equals ( test ) ) { format = AccessLog . Format . COMBINED ; } return format ; }
Convert the input string into the appropriate Format setting .