/** * Get the active message context. * * @return the current active message context */ public static MessageContext getCurrentContext() { return AxisEngine.getCurrentMessageContext(); }
/** * Get the active message context. * * @return the current active message context */ public static MessageContext getCurrentContext() { return AxisEngine.getCurrentMessageContext(); }
/** * Get the active message context. * * @return the current active message context */ public static MessageContext getCurrentContext() { return AxisEngine.getCurrentMessageContext(); }
/** * Gets an object describing the WS-Addressing specification represented * by the namespace configured at the MessageContext or System level. * * @return An AddressingVersion instance, or null */ public static AddressingVersion getAddressingVersion() { String ns = getAddressingNamespaceURI(AxisEngine.getCurrentMessageContext()); return VERSIONS.get(ns); }
/** * Returns the namespace URI of the WSA version being used by the current * request. * * @return The Addressing namespace URI * @deprecated */ public static String getAddressingNamespaceURI() { // NOTE: the below call is Axis-specific :-( MessageContext ctx = AxisEngine.getCurrentMessageContext(); return getAddressingNamespaceURI(ctx); }
private ModelServiceApi getModelServiceApi() throws BocaException{ HttpServlet servlet = (HttpServlet) AxisEngine.getCurrentMessageContext().getProperty(HTTPConstants.MC_HTTP_SERVLET); if(servlet instanceof ModelServlet) { return ((ModelServlet)servlet).getModelServiceApi(); }else { throw new BocaRuntimeException(ExceptionConstants.SERVER.CODES.INTERNAL_ERROR,ExceptionConstants.SERVER.SUBCODES.CREATE_MODELSERVICE_API_ERROR,servlet.getClass().getName()); } }