private static JsJmsMessage decodeMapBody ( String body ) throws MessageDecodeFailedException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "decodeMapBody" ) ; JsJmsMapMessage result = new JsJmsMapMessageImpl ( MfpConstants . CONSTRUCTOR_NO_OP ) ; if ( body != null ) { try { StringTokenizer st = new StringTokenizer ( body , "&" ) ; while ( st . hasMoreTokens ( ) ) { Object [ ] pair = decodePair ( st . nextToken ( ) ) ; result . setObject ( ( String ) pair [ 0 ] , pair [ 1 ] ) ; } } catch ( UnsupportedEncodingException e ) { FFDCFilter . processException ( e , "com.ibm.ws.sib.mfp.impl.WebJsJmsMessageFactoryImpl.decodeMapBody" , "218" ) ; // This can't happen, as the Exception can only be thrown for an MQ message // which isn't what we have. } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "decodeMapBody" ) ; return result ; }
Decode a map message