java http server user authentication

view story

http://stackoverflow.com – I am developing android application for video streaming using existing source of SPYDROID application.Link This application have its own http server.What i need to authenticate user before accessing url of server. The server code is :- package net.majorkernelpanic.http; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InterruptedIOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.net.Authent (HowTos)