@Test public void testPrepareDataServiceRequestForPDF_SmallCaps() throws FMSException{ message.getRequestElements().getRequestParameters().put(RequestElements.REQ_PARAM_ENTITY_SELECTOR,"pdf"); instance.execute(message); String actual = message.getRequestElements().getRequestParameters().get("uri"); Assert.assertTrue(actual.contains(Config.getProperty(Config.BASE_URL_QBO) + "/fakeRealm/fakeAction/pdf?requestid")); }
@Override public void execute(IntuitMessage intuitMessage) throws FMSException { LOG.debug("Enter PrepareRequestInterceptor..."); RequestElements requestElements = intuitMessage.getRequestElements(); Map<String, String> requestParameters = requestElements.getRequestParameters(); String action = (requestElements.getAction() == null) ? getEntityName(requestElements.getEntity()) : requestElements.getAction(); if (intuitMessage.isPlatformService()) { requestParameters.put(RequestElements.REQ_PARAM_RESOURCE_URL, prepareIPSUri(action, requestElements.getContext())); } else if (intuitMessage.isEntitlementService()) { prepareEntitlementsRequest(intuitMessage, requestElements, requestParameters); }else { prepareDataServiceRequest(intuitMessage, requestElements, requestParameters, action); } LOG.debug("Exit PrepareRequestInterceptor."); }
PrepareRequestInterceptor implements Interceptor { @Override public void execute(IntuitMessage intuitMessage) throws FMSException { LOG.debug("Enter PrepareRequestInterceptor..."); RequestElements requestElements = intuitMessage.getRequestElements(); Map<String, String> requestParameters = requestElements.getRequestParameters(); String action = (requestElements.getAction() == null) ? getEntityName(requestElements.getEntity()) : requestElements.getAction(); if (intuitMessage.isPlatformService()) { requestParameters.put(RequestElements.REQ_PARAM_RESOURCE_URL, prepareIPSUri(action, requestElements.getContext())); } else if (intuitMessage.isEntitlementService()) { prepareEntitlementsRequest(intuitMessage, requestElements, requestParameters); }else { prepareDataServiceRequest(intuitMessage, requestElements, requestParameters, action); } LOG.debug("Exit PrepareRequestInterceptor."); } }
PrepareRequestInterceptor implements Interceptor { @Override public void execute(IntuitMessage intuitMessage) throws FMSException { LOG.debug("Enter PrepareRequestInterceptor..."); RequestElements requestElements = intuitMessage.getRequestElements(); Map<String, String> requestParameters = requestElements.getRequestParameters(); String action = (requestElements.getAction() == null) ? getEntityName(requestElements.getEntity()) : requestElements.getAction(); if (intuitMessage.isPlatformService()) { requestParameters.put(RequestElements.REQ_PARAM_RESOURCE_URL, prepareIPSUri(action, requestElements.getContext())); } else if (intuitMessage.isEntitlementService()) { prepareEntitlementsRequest(intuitMessage, requestElements, requestParameters); }else { prepareDataServiceRequest(intuitMessage, requestElements, requestParameters, action); } LOG.debug("Exit PrepareRequestInterceptor."); }  }
PrepareRequestInterceptor implements Interceptor { @Override public void execute(IntuitMessage intuitMessage) throws FMSException { LOG.debug("Enter PrepareRequestInterceptor..."); RequestElements requestElements = intuitMessage.getRequestElements(); Map<String, String> requestParameters = requestElements.getRequestParameters(); String action = (requestElements.getAction() == null) ? getEntityName(requestElements.getEntity()) : requestElements.getAction(); if (intuitMessage.isPlatformService()) { requestParameters.put(RequestElements.REQ_PARAM_RESOURCE_URL, prepareIPSUri(action, requestElements.getContext())); } else if (intuitMessage.isEntitlementService()) { prepareEntitlementsRequest(intuitMessage, requestElements, requestParameters); }else { prepareDataServiceRequest(intuitMessage, requestElements, requestParameters, action); } LOG.debug("Exit PrepareRequestInterceptor."); }  @Override void execute(IntuitMessage intuitMessage); }
PrepareRequestInterceptor implements Interceptor { @Override public void execute(IntuitMessage intuitMessage) throws FMSException { LOG.debug("Enter PrepareRequestInterceptor..."); RequestElements requestElements = intuitMessage.getRequestElements(); Map<String, String> requestParameters = requestElements.getRequestParameters(); String action = (requestElements.getAction() == null) ? getEntityName(requestElements.getEntity()) : requestElements.getAction(); if (intuitMessage.isPlatformService()) { requestParameters.put(RequestElements.REQ_PARAM_RESOURCE_URL, prepareIPSUri(action, requestElements.getContext())); } else if (intuitMessage.isEntitlementService()) { prepareEntitlementsRequest(intuitMessage, requestElements, requestParameters); }else { prepareDataServiceRequest(intuitMessage, requestElements, requestParameters, action); } LOG.debug("Exit PrepareRequestInterceptor."); }  @Override void execute(IntuitMessage intuitMessage);  }