public ServletBinding(HttpServletRequest request,HttpServletResponse response,ServletContext context){
  super.setVariable("request",request);
  super.setVariable("response",response);
  super.setVariable("context",context);
  super.setVariable("application",context);
  super.setVariable("session",request.getSession(false));
  Map params=collectParams(request);
  super.setVariable("params",params);
  Map<String,String> headers=new LinkedHashMap<String,String>();
  for (Enumeration names=request.getHeaderNames(); names.hasMoreElements(); ) {
    String headerName=(String)names.nextElement();
    String headerValue=request.getHeader(headerName);
    headers.put(headerName,headerValue);
  }
  super.setVariable("headers",headers);
}

public ServletBinding ( HttpServletRequest request , HttpServletResponse response , ServletContext context ) { super . setVariable ( "request" , request ) ; super . setVariable ( "response" , response ) ; super . setVariable ( "context" , context ) ; super . setVariable ( "application" , context ) ; super . setVariable ( "session" , request . getSession ( false ) ) ; Map params = collectParams ( request ) ; super . setVariable ( "params" , params ) ; Map < String , String > headers = new LinkedHashMap < String , String > ( ) ; for ( Enumeration names = request . getHeaderNames ( ) ; names . hasMoreElements ( ) ; ) { String headerName = ( String ) names . nextElement ( ) ; String headerValue = request . getHeader ( headerName ) ; headers . put ( headerName , headerValue ) ; } super . setVariable ( "headers" , headers ) ; }
initializes a servlet binding .
