Php Get Url Without Parameters Definition Java