is there a way to control apple tv like the way you can with sling box but in a java app or web interface or something similar?

thanks for the help.