Tuesday, January 11, 2011

How to get HttpServerAddress in custom filter?

In the filter you typically have access to something named the binder (object type is DataBinder). You can access environment based properties like the HttpServerAddress environment configuration property with code like this in your filter Java Code:
String httpServerAddress= binder.getEnvironmentValue("HttpServerAddress");
System.out.println("HttpServerAddress=" + httpServerAddress);

No comments:

Post a Comment