I am using jboss server and when any response coming from server to client the response header contains the information of server name with key "server-header". I want to remove the information from response.

I tried to write a filter from which the header can be removed but still not working. Is there any way to remove the header for hiding server name information to client.

You need not to write any filter for removing the "server-header" information from response header. You can do simple configuration in server itself.

<response-header name="server-header" header-name="Server" header-value="WildFly/10"/>
<filter-ref name="server-header"/>