public String getParameter ( String name ) { // 321485 if ( TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { //306998.15 logger . logp ( Level . FINE , CLASS_NAME , "getParameter" , " name --> " + name ) ; } if ( WCCustomProperties . CHECK_REQUEST_OBJECT_IN_USE ) { checkRequestObjectInUse ( ) ; } parseParameters ( ) ; String [ ] values = ( String [ ] ) SRTServletRequestThreadData . getInstance ( ) . getParameters ( ) . get ( name ) ; String value = null ; if ( values != null && values . length > 0 ) { value = values [ 0 ] ; } if ( TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) { //306998.15 logger . logp ( Level . FINE , CLASS_NAME , "getParameter" , " value --> " + name ) ; } return value ; }
Returns the value of the specified parameter for the request . For example in an HTTP servlet this would return the value of the specified query string parameter . This must be used when the application is sure that there is only one value for the parameter . For multiple valued parameters use getParameterValues .