Java Reference
In-Depth Information
e.printStackTrace();
out.println( "ERROR " + e.getMessage() );
out.flush();
}
}
else if( line.equals( GET_ATTRIBUTE ) )
{
try
{
out.println( getAttribute( ) );
out.flush();
}
catch( Exception e )
{
e.printStackTrace();
out.println( "ERROR " + e.getMessage() );
out.flush();
}
}
else if( line.equals( SET_ATTRIBUTE ) )
{
try
{
setAttribute( );
out.println( "SUCCESS" );
out.flush();
}
catch( Exception e )
{
e.printStackTrace();
out.println( "ERROR " + e.getMessage() );
out.flush();
}
}
else if( line.equals( INVOKE ) )
{
try
{
out.println( invoke() );
out.flush();
}
catch( Exception e )
{
e.printStackTrace();
out.println( "ERROR " + e.getMessage() );
out.flush();
}
}
line = in.readLine();
}
Search WWH ::




Custom Search