本文整理了Java中org.apache.axis.MessageContext.getProperty()
方法的一些代码示例,展示了MessageContext.getProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MessageContext.getProperty()
方法的具体详情如下:
包路径:org.apache.axis.MessageContext
类名称:MessageContext
方法名:getProperty
[英]Returns the value associated with the named property - or null if not defined/set.
[中]返回与命名属性关联的值,如果未定义/设置,则返回null。
代码示例来源:origin: axis/axis
public void processReturnedMessageContext(MessageContext context) {
cookie = context.getProperty(HTTPConstants.HEADER_COOKIE);
cookie2 = context.getProperty(HTTPConstants.HEADER_COOKIE2);
}
}
代码示例来源:origin: axis/axis
/**
* 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);
}
代码示例来源:origin: org.apache.axis/axis
/**
* 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);
}
代码示例来源:origin: org.apache.axis/axis
/**
* 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);
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* 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);
}
代码示例来源:origin: org.apache.axis/axis
/**
* Get the already assigned message id
*/
private Long getMessageId(MessageContext messageContext) {
Long id = null;
id = (Long) messageContext.getProperty(SOAPMonitorConstants.SOAP_MONITOR_ID);
return id;
}
}
代码示例来源:origin: org.apache.axis/axis
public void processReturnedMessageContext(MessageContext context) {
cookie = context.getProperty(HTTPConstants.HEADER_COOKIE);
cookie2 = context.getProperty(HTTPConstants.HEADER_COOKIE2);
}
}
代码示例来源:origin: axis/axis
/**
* Get the already assigned message id
*/
private Long getMessageId(MessageContext messageContext) {
Long id = null;
id = (Long) messageContext.getProperty(SOAPMonitorConstants.SOAP_MONITOR_ID);
return id;
}
}
代码示例来源:origin: axis/axis
/**
* 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);
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
public void processReturnedMessageContext(MessageContext context) {
cookie = context.getProperty(HTTPConstants.HEADER_COOKIE);
cookie2 = context.getProperty(HTTPConstants.HEADER_COOKIE2);
}
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* Get the already assigned message id
*/
private Long getMessageId(MessageContext messageContext) {
Long id = null;
id = (Long) messageContext.getProperty(SOAPMonitorConstants.SOAP_MONITOR_ID);
return id;
}
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* 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);
}
代码示例来源:origin: org.apache.axis/axis
/**
* 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);
}
代码示例来源:origin: axis/axis
/**
* 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);
}
代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis
/**
* 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);
}
代码示例来源:origin: mx4j/mx4j-tools
protected String findConnectionId()
{
MessageContext context = MessageContext.getCurrentContext();
return (String)context.getProperty(SOAPConstants.CONNECTION_ID_HEADER_NAME);
}
}
代码示例来源:origin: mx4j/mx4j-tools
protected String findRequestURL()
{
MessageContext context = MessageContext.getCurrentContext();
return (String)context.getProperty(MessageContext.TRANS_URL);
}
代码示例来源:origin: org.astrogrid/astrogrid-dsa
/** 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 "";
}
代码示例来源:origin: axis/axis
/** 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;
}
}
代码示例来源:origin: uk.org.mygrid.resources/boca-servlet
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());
}
}
内容来源于网络,如有侵权,请联系作者删除!