public void setType ( String type ) throws ApplicationException { if ( StringUtil . isEmpty ( type , true ) ) return ; type = type . toLowerCase ( ) . trim ( ) ; if ( type . equals ( "url" ) ) param . setType ( HttpParamBean . TYPE_URL ) ; else if ( type . equals ( "formfield" ) || type . equals ( "form" ) ) param . setType ( HttpParamBean . TYPE_FORM ) ; else if ( type . equals ( "cgi" ) ) param . setType ( HttpParamBean . TYPE_CGI ) ; else if ( type . startsWith ( "head" ) || type . startsWith ( "header" ) ) param . setType ( HttpParamBean . TYPE_HEADER ) ; else if ( type . equals ( "cookie" ) ) param . setType ( HttpParamBean . TYPE_COOKIE ) ; else if ( type . equals ( "file" ) ) param . setType ( HttpParamBean . TYPE_FILE ) ; else if ( type . equals ( "xml" ) ) param . setType ( HttpParamBean . TYPE_XML ) ; else if ( type . equals ( "body" ) ) param . setType ( HttpParamBean . TYPE_BODY ) ; else throw new ApplicationException ( "invalid type [" + type + "], valid types are [body,cgi,cookie,file,form,head,url,xml]" ) ; }
set the value type The transaction type .