Here you can extend the HTTProvider2Base class of wowza streaming engine overide the onHTTPRequest. Make you jar and put in Wowza-install directoy/lib/
and add the same to server.xml of wowza streaming engine.
Below is a small code for the same :
public class httpProvider extends HTTProvider2Base {
public void onBind(IVHost vhost, HostPort hostPort) {
super.onBind(vhost, hostPort);
// Called when the HTTP Provider is added to the VHost it is configured for.
}
public void onUnbind(IVHost vhost, HostPort hostPort) {
// Called when the VHost is shutting down for the hostPort configured
}
public void onHTTPRequest(IVHost vhost, IHTTPRequest req, IHTTPResponse resp) {
// If you omit this no authentication is checked regardless of the configuration
if (!doHTTPAuthentication(vhost, req, resp))
return;
String retStr = "Hello Wowza";
try {
OutputStream out = resp.getOutputStream();
byte[] outBytes = retStr.getBytes();
out.write(outBytes);
WMSLoggerFactory.getLogger(MyhttpProvider.class).info("HTTPHelloWowza " + resp);
} catch (Exception e) {
WMSLoggerFactory.getLogger(MyhttpProvider.class).error("HTTPHelloWowza ", e);
}
}
@Override
public void addDateHeader(IHTTPResponse resp) {
// TODO Auto-generated method stub
super.addDateHeader(resp);
}
}