BBjspWebResponse::getHeaders (Deprecated)
The BBJSP system is deprecated. For new development, use BBxServlet.
Description
In BBj 16.0 and higher, this method returns a BBjVector containing all the values of the specified header from the BBjspWebResponse object.
Syntax
| 
                                                         Return Value  | 
                                                    
                                                         Method  | 
                                                
| 
                                                         getHeaders(string name)  | 
                                                
Parameters
| 
                                                         Variable  | 
                                                    
                                                         Description  | 
                                                
| 
                                                         name  | 
                                                    
                                                         Specifies the name of the header.  | 
                                                
Return Value
a BBjVector containing the values for the header
Remarks
The example below shows getting all the values of the Accept-Encoding header from a response within a BBJSP Servlet.
Example
This example demonstrates how this works in a BBJSP web-page
| 
                                                         <!DOCTYPE html/>  | 
                                                
This example demonstrates how this works in a BBJSP servlet
| 
                                                         class public MyServlet  |