private Set getDeployedServiceNames(MessageContext msgContext) throws ConfigurationException { Set serviceNames = new HashSet(); Iterator deployedServicesIter = msgContext.getAxisEngine().getConfig().getDeployedServices(); while (deployedServicesIter.hasNext()) { ServiceDesc serviceDesc = (ServiceDesc) deployedServicesIter.next(); serviceNames.add(serviceDesc.getName()); } return serviceNames; }
private Set getDeployedServiceNames(MessageContext msgContext) throws ConfigurationException { Set serviceNames = new HashSet(); Iterator deployedServicesIter = msgContext.getAxisEngine().getConfig().getDeployedServices(); while (deployedServicesIter.hasNext()) { ServiceDesc serviceDesc = (ServiceDesc) deployedServicesIter.next(); serviceNames.add(serviceDesc.getName()); } return serviceNames; }
private Set getDeployedServiceNames(MessageContext msgContext) throws ConfigurationException { Set serviceNames = new HashSet(); Iterator deployedServicesIter = msgContext.getAxisEngine().getConfig().getDeployedServices(); while (deployedServicesIter.hasNext()) { ServiceDesc serviceDesc = (ServiceDesc) deployedServicesIter.next(); serviceNames.add(serviceDesc.getName()); } return serviceNames; }
public boolean shouldDoAutoTypes() { if(doAutoTypes != null) { return doAutoTypes.booleanValue(); } MessageContext msgContext = MessageContext.getCurrentContext(); if(msgContext != null) { if (msgContext.isPropertyTrue("axis.doAutoTypes") || (msgContext.getAxisEngine() != null && JavaUtils.isTrue(msgContext.getAxisEngine().getOption("axis.doAutoTypes")))) { doAutoTypes = Boolean.TRUE; } } if(doAutoTypes == null){ doAutoTypes = AxisProperties.getProperty("axis.doAutoTypes", "false") .equals("true") ? Boolean.TRUE : Boolean.FALSE; } return doAutoTypes.booleanValue(); }
public boolean shouldDoAutoTypes() { if(doAutoTypes != null) { return doAutoTypes.booleanValue(); } MessageContext msgContext = MessageContext.getCurrentContext(); if(msgContext != null) { if (msgContext.isPropertyTrue("axis.doAutoTypes") || (msgContext.getAxisEngine() != null && JavaUtils.isTrue(msgContext.getAxisEngine().getOption("axis.doAutoTypes")))) { doAutoTypes = Boolean.TRUE; } } if(doAutoTypes == null){ doAutoTypes = AxisProperties.getProperty("axis.doAutoTypes", "false") .equals("true") ? Boolean.TRUE : Boolean.FALSE; } return doAutoTypes.booleanValue(); }
public boolean shouldDoAutoTypes() { if(doAutoTypes != null) { return doAutoTypes.booleanValue(); } MessageContext msgContext = MessageContext.getCurrentContext(); if(msgContext != null) { if (msgContext.isPropertyTrue("axis.doAutoTypes") || (msgContext.getAxisEngine() != null && JavaUtils.isTrue(msgContext.getAxisEngine().getOption("axis.doAutoTypes")))) { doAutoTypes = Boolean.TRUE; } } if(doAutoTypes == null){ doAutoTypes = AxisProperties.getProperty("axis.doAutoTypes", "false") .equals("true") ? Boolean.TRUE : Boolean.FALSE; } return doAutoTypes.booleanValue(); }
/** * Default java service object comes from simply instantiating the * class wrapped in jc * */ protected Object makeNewServiceObject(MessageContext msgContext, String clsName) throws Exception { ClassLoader cl = msgContext.getClassLoader(); ClassCache cache = msgContext.getAxisEngine().getClassCache(); JavaClass jc = cache.lookup(clsName, cl); return jc.getJavaClass().newInstance(); }
/** * Default java service object comes from simply instantiating the * class wrapped in jc * */ protected Object makeNewServiceObject(MessageContext msgContext, String clsName) throws Exception { ClassLoader cl = msgContext.getClassLoader(); ClassCache cache = msgContext.getAxisEngine().getClassCache(); JavaClass jc = cache.lookup(clsName, cl); return jc.getJavaClass().newInstance(); }
/** * Default java service object comes from simply instantiating the * class wrapped in jc * */ protected Object makeNewServiceObject(MessageContext msgContext, String clsName) throws Exception { ClassLoader cl = msgContext.getClassLoader(); ClassCache cache = msgContext.getAxisEngine().getClassCache(); JavaClass jc = cache.lookup(clsName, cl); return jc.getJavaClass().newInstance(); }
public static String getEncoding(Message message, MessageContext msgContext, XMLEncoder defaultEncoder) { String encoding = null; try { if(message != null) { encoding = (String) message.getProperty(SOAPMessage.CHARACTER_SET_ENCODING); } } catch (SOAPException e) { } if(msgContext == null) { msgContext = MessageContext.getCurrentContext(); } if(msgContext != null && encoding == null){ encoding = (String) msgContext.getProperty(SOAPMessage.CHARACTER_SET_ENCODING); } if (msgContext != null && encoding == null && msgContext.getAxisEngine() != null) { encoding = (String) msgContext.getAxisEngine().getOption(AxisEngine.PROP_XML_ENCODING); } if (encoding == null && defaultEncoder != null) { encoding = defaultEncoder.getEncoding(); } return encoding; } }
public static String getEncoding(Message message, MessageContext msgContext, XMLEncoder defaultEncoder) { String encoding = null; try { if(message != null) { encoding = (String) message.getProperty(SOAPMessage.CHARACTER_SET_ENCODING); } } catch (SOAPException e) { } if(msgContext == null) { msgContext = MessageContext.getCurrentContext(); } if(msgContext != null && encoding == null){ encoding = (String) msgContext.getProperty(SOAPMessage.CHARACTER_SET_ENCODING); } if (msgContext != null && encoding == null && msgContext.getAxisEngine() != null) { encoding = (String) msgContext.getAxisEngine().getOption(AxisEngine.PROP_XML_ENCODING); } if (encoding == null && defaultEncoder != null) { encoding = defaultEncoder.getEncoding(); } return encoding; } }
public static String getEncoding(Message message, MessageContext msgContext, XMLEncoder defaultEncoder) { String encoding = null; try { if(message != null) { encoding = (String) message.getProperty(SOAPMessage.CHARACTER_SET_ENCODING); } } catch (SOAPException e) { } if(msgContext == null) { msgContext = MessageContext.getCurrentContext(); } if(msgContext != null && encoding == null){ encoding = (String) msgContext.getProperty(SOAPMessage.CHARACTER_SET_ENCODING); } if (msgContext != null && encoding == null && msgContext.getAxisEngine() != null) { encoding = (String) msgContext.getAxisEngine().getOption(AxisEngine.PROP_XML_ENCODING); } if (encoding == null && defaultEncoder != null) { encoding = defaultEncoder.getEncoding(); } return encoding; } }
private Object getApplicationScopedObject(MessageContext msgContext, String serviceName, String clsName, IntHolder scopeHolder) throws Exception { AxisEngine engine = msgContext.getAxisEngine(); Session appSession = engine.getApplicationSession(); if (appSession != null) { return getSessionServiceObject(appSession, serviceName, msgContext, clsName); } else { // was no application session - log an error and // treat as request scope log.error(Messages.getMessage("noAppSession")); scopeHolder.value = Scope.DEFAULT.getValue(); return getNewServiceObject(msgContext, clsName); } }
private Object getApplicationScopedObject(MessageContext msgContext, String serviceName, String clsName, IntHolder scopeHolder) throws Exception { AxisEngine engine = msgContext.getAxisEngine(); Session appSession = engine.getApplicationSession(); if (appSession != null) { return getSessionServiceObject(appSession, serviceName, msgContext, clsName); } else { // was no application session - log an error and // treat as request scope log.error(Messages.getMessage("noAppSession")); scopeHolder.value = Scope.DEFAULT.getValue(); return getNewServiceObject(msgContext, clsName); } }
private Object getApplicationScopedObject(MessageContext msgContext, String serviceName, String clsName, IntHolder scopeHolder) throws Exception { AxisEngine engine = msgContext.getAxisEngine(); Session appSession = engine.getApplicationSession(); if (appSession != null) { return getSessionServiceObject(appSession, serviceName, msgContext, clsName); } else { // was no application session - log an error and // treat as request scope log.error(Messages.getMessage("noAppSession")); scopeHolder.value = Scope.DEFAULT.getValue(); return getNewServiceObject(msgContext, clsName); } }
/** * Set the target service for this message. * <p> * This looks up the named service in the registry, and has * the side effect of setting our TypeMappingRegistry to the * service's. * * @param tServ the name of the target service * @throws AxisFault if anything goes wrong in resolving or setting the * service */ public void setTargetService(String tServ) throws AxisFault { log.debug("MessageContext: setTargetService(" + tServ+")"); if (tServ == null) { setService(null); } else { try { setService(getAxisEngine().getService(tServ)); } catch (AxisFault fault) { // If we're on the client, don't throw this fault... if (!isClient()) { throw fault; } } } targetService = tServ; }
/** * Set the target service for this message. * <p> * This looks up the named service in the registry, and has * the side effect of setting our TypeMappingRegistry to the * service's. * * @param tServ the name of the target service * @throws AxisFault if anything goes wrong in resolving or setting the * service */ public void setTargetService(String tServ) throws AxisFault { log.debug("MessageContext: setTargetService(" + tServ+")"); if (tServ == null) { setService(null); } else { try { setService(getAxisEngine().getService(tServ)); } catch (AxisFault fault) { // If we're on the client, don't throw this fault... if (!isClient()) { throw fault; } } } targetService = tServ; }
/** * Set the target service for this message. * <p> * This looks up the named service in the registry, and has * the side effect of setting our TypeMappingRegistry to the * service's. * * @param tServ the name of the target service * @throws AxisFault if anything goes wrong in resolving or setting the * service */ public void setTargetService(String tServ) throws AxisFault { log.debug("MessageContext: setTargetService(" + tServ+")"); if (tServ == null) { setService(null); } else { try { setService(getAxisEngine().getService(tServ)); } catch (AxisFault fault) { // If we're on the client, don't throw this fault... if (!isClient()) { throw fault; } } } targetService = tServ; }
protected Object makeNewServiceObject(MessageContext msgContext, String clsName) throws Exception { ClassLoader cl = msgContext.getClassLoader(); ClassCache cache = msgContext.getAxisEngine().getClassCache(); Class<?> svcClass = cache.lookup(clsName, cl).getJavaClass(); return PicoServletContainerFilter.getRequestComponentForThread(svcClass); }
protected Object makeNewServiceObject(MessageContext msgContext, String clsName) throws Exception { ClassLoader cl = msgContext.getClassLoader(); ClassCache cache = msgContext.getAxisEngine().getClassCache(); Class<?> svcClass = cache.lookup(clsName, cl).getJavaClass(); return PicoServletContainerFilter.getRequestComponentForThread(svcClass); }