fluid-ws-java-client/src/main/java/com/fluidbpm/ws/client/v1/ABaseClientWS.java
private String executeHttp(
			HttpClient httpClientParam,
			HttpUriRequest httpUriRequestParam,
			ResponseHandler responseHandlerParam,
			String postfixUrlParam
	) {
		try {
			Object returnedObj = httpClientParam.execute(httpUriRequestParam, responseHandlerParam);

			//String text came back...
			if(returnedObj instanceof String) {
				return (String)returnedObj;
			} else if(returnedObj == null){
				//[null] - came back...
				throw new FluidClientException(
						"No results, [null] response.",
						FluidClientException.ErrorCode.NO_RESULT);
			}

			throw new FluidClientException(
					"Expected 'String' got '"+(
							(returnedObj == null) ? null:returnedObj.getClass().getName())+"'.",
					FluidClientException.ErrorCode.ILLEGAL_STATE_ERROR);
		} catch (IOException except) {
			//IO Problem...
			if(except instanceof UnknownHostException) {
				throw new FluidClientException(
						"Unable to reach host '"+
								this.endpointUrl.concat(postfixUrlParam)+"'. "+except.getMessage(),
						except, FluidClientException.ErrorCode.CONNECT_ERROR);
			}

			if(except instanceof ConnectException) {
				throw new FluidClientException(except.getMessage(),
						except,
						FluidClientException.ErrorCode.CONNECT_ERROR);
			}

			throw new FluidClientException(
					except.getMessage(),
					except,
					FluidClientException.ErrorCode.IO_ERROR);
		}
	}
private String executeHttp(
			HttpClient httpClientParam,
			HttpUriRequest httpUriRequestParam,
			ResponseHandler responseHandlerParam,
			String postfixUrlParam
	) {
		try {
			Object returnedObj = httpClientParam.execute(httpUriRequestParam, responseHandlerParam);

			//String text came back...
			if(returnedObj instanceof String) {
				return (String)returnedObj;
			} else if(returnedObj == null){
				//[null] - came back...
				throw new FluidClientException(
						"No results, [null] response.",
						FluidClientException.ErrorCode.NO_RESULT);
			}

			throw new FluidClientException(
					"Expected 'String' got '"+(
							(returnedObj == null) ? null:returnedObj.getClass().getName())+"'.",
					FluidClientException.ErrorCode.ILLEGAL_STATE_ERROR);
		} catch (IOException except) {
			//IO Problem...
			if(except instanceof UnknownHostException) {
				throw new FluidClientException(
						"Unable to reach host '"+
								this.endpointUrl.concat(postfixUrlParam)+"'. "+except.getMessage(),
						except, FluidClientException.ErrorCode.CONNECT_ERROR);
			}

			if(except instanceof ConnectException) {
				throw new FluidClientException(except.getMessage(),
						except,
						FluidClientException.ErrorCode.CONNECT_ERROR);
			}

			throw new FluidClientException(
					except.getMessage(),
					except,
					FluidClientException.ErrorCode.IO_ERROR);
		}
	}
private String executeHttp ( HttpClient httpClientParam , HttpUriRequest httpUriRequestParam , ResponseHandler responseHandlerParam , String postfixUrlParam ) { try { Object returnedObj = httpClientParam . execute ( httpUriRequestParam , responseHandlerParam ) ; //String text came back... if ( returnedObj instanceof String ) { return ( String ) returnedObj ; } else if ( returnedObj == null ) { //[null] - came back... throw new FluidClientException ( "No results, [null] response." , FluidClientException . ErrorCode . NO_RESULT ) ; } throw new FluidClientException ( "Expected 'String' got '" + ( ( returnedObj == null ) ? null : returnedObj . getClass ( ) . getName ( ) ) + "'." , FluidClientException . ErrorCode . ILLEGAL_STATE_ERROR ) ; } catch ( IOException except ) { //IO Problem... if ( except instanceof UnknownHostException ) { throw new FluidClientException ( "Unable to reach host '" + this . endpointUrl . concat ( postfixUrlParam ) + "'. " + except . getMessage ( ) , except , FluidClientException . ErrorCode . CONNECT_ERROR ) ; } if ( except instanceof ConnectException ) { throw new FluidClientException ( except . getMessage ( ) , except , FluidClientException . ErrorCode . CONNECT_ERROR ) ; } throw new FluidClientException ( except . getMessage ( ) , except , FluidClientException . ErrorCode . IO_ERROR ) ; } }
Performs an HTTP request with {@code postfixUrlParam} on {@code httpClientParam}.

@param httpClientParam The Apache Http Client to use.
@param httpUriRequestParam The Apache URI Request.
@param responseHandlerParam The response from the request handler.
@param postfixUrlParam URL mapping after the Base endpoint.
@return Return body as JSON.

@see HttpClient
@see HttpUriRequest
@see ResponseHandler
Performs an HTTP request with { @code postfixUrlParam } on { @code httpClientParam } .