question: formats a warningvalue as a string suitable for including in a header . for example , you can : warningvalue wv = ... ; httpresponse resp = ... ; resp.addheader `` warning '' , wv.tostring ; concode_field_sep Pattern WARN_DATE_PATTERN concode_elem_sep String ASCTIME_DATE concode_elem_sep String HOST concode_elem_sep Date warnDate concode_elem_sep int warnCode concode_elem_sep int offs concode_elem_sep String IPV4ADDRESS concode_elem_sep int init_offs concode_elem_sep String RFC1123_DATE concode_elem_sep String MONTH concode_elem_sep String WKDAY concode_elem_sep String PORT concode_elem_sep String HOSTPORT concode_elem_sep String RFC850_DATE concode_elem_sep String src concode_elem_sep String TOPLABEL concode_elem_sep String TIME concode_elem_sep String HTTP_DATE concode_elem_sep Pattern HOSTPORT_PATTERN concode_elem_sep String HOSTNAME concode_elem_sep String WEEKDAY concode_elem_sep String warnText concode_elem_sep String DATE1 concode_elem_sep String DATE2 concode_elem_sep String DOMAINLABEL concode_elem_sep String DATE3 concode_elem_sep String WARN_DATE concode_elem_sep String warnAgent concode_field_sep boolean isChar concode_elem_sep boolean isTokenChar concode_elem_sep void consumeCharacter concode_elem_sep void consumeLinearWhitespace concode_elem_sep void consumeWarnText concode_elem_sep String getWarnAgent concode_elem_sep void parseError concode_elem_sep String getWarnText concode_elem_sep void consumeWarnCode concode_elem_sep int getWarnCode concode_elem_sep void consumeWarnAgent concode_elem_sep void consumeHostPort concode_elem_sep void consumeWarnDate concode_elem_sep void consumeQuotedString concode_elem_sep Date getWarnDate concode_elem_sep WarningValue[] getWarningValues concode_elem_sep void consumeWarnValue concode_elem_sep boolean isControl concode_elem_sep void consumeToken concode_elem_sep boolean isSeparator
target: String function ( ) { if ( warnDate != null ) { return String . format ( "srini_string" % s , warnCode , warnAgent , warnText , DateUtils . formatDate ( warnDate ) ) ; } else { return String . format ( "srini_string" , warnCode , warnAgent , warnText ) ; } }