public static String determineConversationId(HttpServletRequest request, String parameterName) { if (request == null) { throw ConversationLogger.LOG.mustCallAssociateBeforeActivate(); } if (request.getParameter(NO_CID) != null) { return null; // ignore cid; WELD-919 } if (CONVERSATION_PROPAGATION_NONE.equals(request.getParameter(CONVERSATION_PROPAGATION))) { return null; // conversationPropagation=none (CDI-135) } String cidName = parameterName; String cid = request.getParameter(cidName); ConversationLogger.LOG.foundConversationFromRequest(cid); return cid; } }
public static String determineConversationId(HttpServletRequest request, String parameterName) { if (request == null) { throw ConversationLogger.LOG.mustCallAssociateBeforeActivate(); } if (request.getParameter(NO_CID) != null) { return null; // ignore cid; WELD-919 } if (CONVERSATION_PROPAGATION_NONE.equals(request.getParameter(CONVERSATION_PROPAGATION))) { return null; // conversationPropagation=none (CDI-135) } String cidName = parameterName; String cid = request.getParameter(cidName); ConversationLogger.LOG.foundConversationFromRequest(cid); return cid; } }
public static String determineConversationId(HttpServletRequest request, String parameterName) { if (request == null) { throw ConversationLogger.LOG.mustCallAssociateBeforeActivate(); } if (request.getParameter(NO_CID) != null) { return null; // ignore cid; WELD-919 } if (CONVERSATION_PROPAGATION_NONE.equals(request.getParameter(CONVERSATION_PROPAGATION))) { return null; // conversationPropagation=none (CDI-135) } String cidName = parameterName; String cid = request.getParameter(cidName); ConversationLogger.LOG.foundConversationFromRequest(cid); return cid; } }
public static String determineConversationId(HttpServletRequest request, String parameterName) { if (request == null) { throw ConversationLogger.LOG.mustCallAssociateBeforeActivate(); } if (request.getParameter(NO_CID) != null) { return null; // ignore cid; WELD-919 } if (CONVERSATION_PROPAGATION_NONE.equals(request.getParameter(CONVERSATION_PROPAGATION))) { return null; // conversationPropagation=none (CDI-135) } String cidName = parameterName; String cid = request.getParameter(cidName); ConversationLogger.LOG.foundConversationFromRequest(cid); return cid; } }