HTTP Custom Response Header

The HTTP Custom Response Header tab allows you to define custom response header filters for HTTP responses at the server level. You can customize header information such as the server name or the expiration date of the response. By default, a server-level custom response header filter applies to all server resources. You can apply the filter to specific resources by setting the value of the com.sybase.jaguar.server.filter-mapping property to the resource URLs.

You can also define custom headers at the Web application level by installing the default filter com.sybase.jaguar.servlet.AddHeadersFilter in a Web application. Chapter 23, “Using Filters and Event Listeners,” in the EAServer Programmer’s Guide describes how to do this. When both server and Web application custom headers exist, the Web application custom header takes precedence.

StepsDefining custom headers

Enter a custom header as property name/value pairs.

  1. Click Add to display the New Property dialog box.

  2. Enter a property name, property value, and (optionally) a description.

  3. Select the property type, either String or Date. If you select Date, specify when the header expires. Enter a period of time, and select either From Now or Ago. For example, if you want the header to expire a month from now, enter 1 in the Months field, and select From Now.

To edit a header property, highlight the property and click Modify. Edit the property name or value, and click OK.

To delete a header property, highlight the property and click Delete.

For more information on filters and programming customized responses, see the Java Web page.