public SolrRequestParsers(SolrConfig globalConfig){
  final int multipartUploadLimitKB, formUploadLimitKB;
  if (globalConfig == null) {
    multipartUploadLimitKB=formUploadLimitKB=Integer.MAX_VALUE;
    enableRemoteStreams=true;
    handleSelect=true;
    addHttpRequestToContext=false;
  }
 else {
    multipartUploadLimitKB=globalConfig.getMultipartUploadLimitKB();
    formUploadLimitKB=globalConfig.getFormUploadLimitKB();
    enableRemoteStreams=globalConfig.isEnableRemoteStreams();
    handleSelect=globalConfig.isHandleSelect();
    addHttpRequestToContext=globalConfig.isAddHttpRequestToContext();
  }
  init(multipartUploadLimitKB,formUploadLimitKB);
}

public SolrRequestParsers ( SolrConfig globalConfig ) { final int multipartUploadLimitKB , formUploadLimitKB ; if ( globalConfig == null ) { multipartUploadLimitKB = formUploadLimitKB = Integer . MAX_VALUE ; enableRemoteStreams = true ; handleSelect = true ; addHttpRequestToContext = false ; } else { multipartUploadLimitKB = globalConfig . getMultipartUploadLimitKB ( ) ; formUploadLimitKB = globalConfig . getFormUploadLimitKB ( ) ; enableRemoteStreams = globalConfig . isEnableRemoteStreams ( ) ; handleSelect = globalConfig . isHandleSelect ( ) ; addHttpRequestToContext = globalConfig . isAddHttpRequestToContext ( ) ; } init ( multipartUploadLimitKB , formUploadLimitKB ) ; }
pass in an xml configuration . a null configuration will enable everything with maximum values .
