285286287288289290291292293294295
log.debug("(processData) Processing data with stream: " + stream.getClass().getName() ); // Process the actual data MethodTimer mt = new MethodTimer( stream, "process" ); stream.process( res ); mt.done(); if ( log.isDebugEnabled() ) log.debug( "(processData) Data processing completed" ); } }
368369370371372373374375376377378
else { String msg = "Service Parse Error [" + in + "], unknown node [" + doc.getNodeName() + "]"; getRequest().logError( "(WIIServiceStream.parse) " + msg, null ); mt.done(); mRequest.getDevice().writeError( mRequest, pw, "SERVICE ERROR", msg ); } } } catch( Exception e )
378379380381382383384385386387388
catch( Exception e ) { String msg = "Service Parse Error [" + in + "]"; getRequest().logError( "(WIIServiceStream.parse) " + msg, e ); mt.done(); mRequest.getDevice().writeError( mRequest, pw, "SERVICE ERROR", msg ); } mt.done(); }
382383384385386387388389390391392
mt.done(); mRequest.getDevice().writeError( mRequest, pw, "SERVICE ERROR", msg ); } mt.done(); } protected void callService( String name, String xml, Node node, WIIResponse res ) throws IOException, WIIException {
406407408409410411412413414415416
{ try { MethodTimer mt = new MethodTimer( osf, "process" ); osf.process( node, res ); mt.done(); } catch( Exception e ) { String msg = "Service Parse Error [" + xml + "]"; getRequest().logError( "(callService) " + msg, e );