import { Request } from "oauth2-nodejs" ; export class RequestMap implements Request { private _headerMap : Map < string , string > ; private _parameterMap : Map < string , string > ; constructor ( ) { this . _headerMap = new Map < string , string > ( ) ; this . _parameterMap = new Map < string , string > ( ) ; } getHeader ( name ) { return this . _headerMap . get ( name ) ; } setHeader ( name , value ) { this . _headerMap . set ( name , value ) ; } getParameter ( name ) { return this . _parameterMap . get ( name ) ; } setParameter ( name , value ) { this . _parameterMap . set ( name , value ) ; } getParameterMap ( ) { return this . _parameterMap ; } }