public void processReturnedMessageContext(MessageContext context) { cookie = context.getProperty(HTTPConstants.HEADER_COOKIE); cookie2 = context.getProperty(HTTPConstants.HEADER_COOKIE2); } }
/** * Returns true if the MessageContext contains a property with the specified name. * @param name Name of the property whose presense is to be tested * @return Returns true if the MessageContext contains the property; otherwise false */ public boolean containsProperty(String name) { Object propertyValue = getProperty(name); return (propertyValue != null); }
/** * Get a <code>String</code> property by name. * * @param propName the name of the property to fetch * @return the value of the named property * @throws ClassCastException if the property named does not have a * <code>String</code> value */ public String getStrProp(String propName) { return (String) getProperty(propName); }
/** * Returns true if the MessageContext contains a property with the specified name. * @param name Name of the property whose presense is to be tested * @return Returns true if the MessageContext contains the property; otherwise false */ public boolean containsProperty(String name) { Object propertyValue = getProperty(name); return (propertyValue != null); }
/** * Get a <code>String</code> property by name. * * @param propName the name of the property to fetch * @return the value of the named property * @throws ClassCastException if the property named does not have a * <code>String</code> value */ public String getStrProp(String propName) { return (String) getProperty(propName); }
/** * Get the already assigned message id */ private Long getMessageId(MessageContext messageContext) { Long id = null; id = (Long) messageContext.getProperty(SOAPMonitorConstants.SOAP_MONITOR_ID); return id; } }
public void processReturnedMessageContext(MessageContext context) { cookie = context.getProperty(HTTPConstants.HEADER_COOKIE); cookie2 = context.getProperty(HTTPConstants.HEADER_COOKIE2); } }
/** * Get the already assigned message id */ private Long getMessageId(MessageContext messageContext) { Long id = null; id = (Long) messageContext.getProperty(SOAPMonitorConstants.SOAP_MONITOR_ID); return id; } }
/** * Get a <code>String</code> property by name. * * @param propName the name of the property to fetch * @return the value of the named property * @throws ClassCastException if the property named does not have a * <code>String</code> value */ public String getStrProp(String propName) { return (String) getProperty(propName); }
public void processReturnedMessageContext(MessageContext context) { cookie = context.getProperty(HTTPConstants.HEADER_COOKIE); cookie2 = context.getProperty(HTTPConstants.HEADER_COOKIE2); } }
/** * Get the already assigned message id */ private Long getMessageId(MessageContext messageContext) { Long id = null; id = (Long) messageContext.getProperty(SOAPMonitorConstants.SOAP_MONITOR_ID); return id; } }
/** * Returns true if the MessageContext contains a property with the specified name. * @param name Name of the property whose presense is to be tested * @return Returns true if the MessageContext contains the property; otherwise false */ public boolean containsProperty(String name) { Object propertyValue = getProperty(name); return (propertyValue != null); }
/** * configure our elements from the context. Call this in the invoke() * implementation to set up the base class * @param msgContext */ protected void configureFromContext(MessageContext msgContext) { this.development = ((Boolean) msgContext.getProperty (HTTPConstants.PLUGIN_IS_DEVELOPMENT)).booleanValue(); this.exceptionLog = (Log) msgContext.getProperty (HTTPConstants.PLUGIN_EXCEPTION_LOG); this.log = (Log) msgContext.getProperty(HTTPConstants.PLUGIN_LOG); }
/** * configure our elements from the context. Call this in the invoke() * implementation to set up the base class * @param msgContext */ protected void configureFromContext(MessageContext msgContext) { this.development = ((Boolean) msgContext.getProperty (HTTPConstants.PLUGIN_IS_DEVELOPMENT)).booleanValue(); this.exceptionLog = (Log) msgContext.getProperty (HTTPConstants.PLUGIN_EXCEPTION_LOG); this.log = (Log) msgContext.getProperty(HTTPConstants.PLUGIN_LOG); }
/** * configure our elements from the context. Call this in the invoke() * implementation to set up the base class * @param msgContext */ protected void configureFromContext(MessageContext msgContext) { this.development = ((Boolean) msgContext.getProperty (HTTPConstants.PLUGIN_IS_DEVELOPMENT)).booleanValue(); this.exceptionLog = (Log) msgContext.getProperty (HTTPConstants.PLUGIN_EXCEPTION_LOG); this.log = (Log) msgContext.getProperty(HTTPConstants.PLUGIN_LOG); }
protected String findConnectionId() { MessageContext context = MessageContext.getCurrentContext(); return (String)context.getProperty(SOAPConstants.CONNECTION_ID_HEADER_NAME); } }
protected String findRequestURL() { MessageContext context = MessageContext.getCurrentContext(); return (String)context.getProperty(MessageContext.TRANS_URL); }
/** Returns some ID of the client making the call to this axis service */ public static String getSource() { MessageContext context = MessageContext.getCurrentContext(); if (context != null) { //get http request that contained the message HttpServletRequest request = (HttpServletRequest) context.getProperty(org.apache.axis.transport.http.HTTPConstants.MC_HTTP_SERVLETREQUEST); //return remove address of request return request.getRemoteHost(); } return ""; }
/** Return a map of properties that makeup the application-specific for the JMS Messages. */ protected HashMap createApplicationProperties(MessageContext context) { HashMap props = null; if (context.containsProperty( JMSConstants.JMS_APPLICATION_MSG_PROPS)) { props = new HashMap(); props.putAll((Map)context.getProperty( JMSConstants.JMS_APPLICATION_MSG_PROPS)); } return props; } }
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()); } }