本文整理了Java中org.apache.cxf.service.Service.put()
方法的一些代码示例,展示了Service.put()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Service.put()
方法的具体详情如下:
包路径:org.apache.cxf.service.Service
类名称:Service
方法名:put
暂无
代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws
@Override
protected void buildServiceFromClass() {
super.buildServiceFromClass();
getService().put(WS_FEATURES, getWsFeatures());
}
代码示例来源:origin: apache/cxf
protected void setServiceProperties() {
MethodDispatcher md = getMethodDispatcher();
getService().put(MethodDispatcher.class.getName(), md);
for (Class<?> c : md.getClass().getInterfaces()) {
getService().put(c.getName(), md);
}
if (properties != null) {
getService().putAll(properties);
}
}
代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws
@Override
public org.apache.cxf.service.Service create() {
org.apache.cxf.service.Service s = super.create();
s.put(ENDPOINT_CLASS, implInfo.getEndpointClass());
if (s.getDataBinding() != null) {
setMTOMFeatures(s.getDataBinding());
}
return s;
}
代码示例来源:origin: org.apache.cxf/cxf-rt-core
protected void setServiceProperties() {
MethodDispatcher md = getMethodDispatcher();
getService().put(MethodDispatcher.class.getName(), md);
for (Class<?> c : md.getClass().getInterfaces()) {
getService().put(c.getName(), md);
}
if (properties != null) {
getService().putAll(properties);
}
setOldMethodDispatcherProperty();
}
代码示例来源:origin: apache/cxf
public Object put(String key, Object value) {
return wrappedService.put(key, value);
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
protected void setServiceProperties() {
MethodDispatcher md = getMethodDispatcher();
getService().put(MethodDispatcher.class.getName(), md);
for (Class<?> c : md.getClass().getInterfaces()) {
getService().put(c.getName(), md);
}
if (properties != null) {
getService().putAll(properties);
}
setOldMethodDispatcherProperty();
}
代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws
s.put(AbstractInDatabindingInterceptor.NO_VALIDATE_PARTS, Boolean.TRUE);
代码示例来源:origin: org.mule.modules/mule-module-cxf
private void setProperties(Service service) {
if (xmlInputFactory != null) {
service.put(XMLInputFactory.class.getName(), xmlInputFactory);
}
if (xmlOutputFactory != null) {
service.put(XMLOutputFactory.class.getName(), xmlOutputFactory);
}
}
代码示例来源:origin: apache/cxf
@Override
protected void buildServiceFromClass() {
super.buildServiceFromClass();
getService().put(WS_FEATURES, getWsFeatures());
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
@Deprecated
protected void setOldMethodDispatcherProperty() {
//Try adding the MethodDispatcher using the old interface
MethodDispatcher md = getMethodDispatcher();
if (getService().get("org.apache.cxf.frontend.MethodDispatcher") == null) {
try {
Class<?> cls = ClassLoaderUtils.loadClass("org.apache.cxf.frontend.MethodDispatcher",
getClass());
Object o = Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(),
new Class[] {cls},
new ReflectionInvokationHandler(md));
getService().put("org.apache.cxf.frontend.MethodDispatcher", o);
} catch (Exception ex) {
//ignore
}
}
}
代码示例来源:origin: org.apache.cxf/cxf-rt-core
@Deprecated
protected void setOldMethodDispatcherProperty() {
//Try adding the MethodDispatcher using the old interface
MethodDispatcher md = getMethodDispatcher();
if (getService().get("org.apache.cxf.frontend.MethodDispatcher") == null) {
try {
Class<?> cls = ClassLoaderUtils.loadClass("org.apache.cxf.frontend.MethodDispatcher",
getClass());
Object o = Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(),
new Class[] {cls},
new ReflectionInvokationHandler(md));
getService().put("org.apache.cxf.frontend.MethodDispatcher", o);
} catch (Exception ex) {
//ignore
}
}
}
代码示例来源:origin: apache/cxf
@Override
public org.apache.cxf.service.Service create() {
org.apache.cxf.service.Service s = super.create();
s.put(ENDPOINT_CLASS, implInfo.getEndpointClass());
if (s.getDataBinding() != null) {
setMTOMFeatures(s.getDataBinding());
}
return s;
}
代码示例来源:origin: org.apache.cxf/cxf-rt-bindings-http
si.getName().getLocalPart() + "HttpBinding"));
service.put(URIMapper.class.getName(), mapper);
MethodDispatcher md = (MethodDispatcher) service.get(MethodDispatcher.class.getName());
代码示例来源:origin: apache/cxf
s.put(AbstractInDatabindingInterceptor.NO_VALIDATE_PARTS, Boolean.TRUE);
代码示例来源:origin: apache/cxf
@Override
public synchronized Service create() {
reset();
sendEvent(Event.START_CREATE);
initializeServiceConfigurations();
initializeServiceModel();
initializeDefaultInterceptors();
if (invoker != null) {
getService().setInvoker(getInvoker());
} else {
getService().setInvoker(createInvoker());
}
if (getExecutor() != null) {
getService().setExecutor(getExecutor());
}
if (getDataBinding() != null) {
getService().setDataBinding(getDataBinding());
}
getService().put(MethodDispatcher.class.getName(), getMethodDispatcher());
createEndpoints();
fillInSchemaCrossreferences();
Service serv = getService();
sendEvent(Event.END_CREATE, serv);
return serv;
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
@Override
public synchronized Service create() {
reset();
sendEvent(Event.START_CREATE);
initializeServiceConfigurations();
initializeServiceModel();
initializeDefaultInterceptors();
if (invoker != null) {
getService().setInvoker(getInvoker());
} else {
getService().setInvoker(createInvoker());
}
if (getExecutor() != null) {
getService().setExecutor(getExecutor());
}
if (getDataBinding() != null) {
getService().setDataBinding(getDataBinding());
}
getService().put(MethodDispatcher.class.getName(), getMethodDispatcher());
createEndpoints();
fillInSchemaCrossreferences();
Service serv = getService();
sendEvent(Event.END_CREATE, serv);
return serv;
}
代码示例来源:origin: org.apache.cxf/cxf-rt-core
@Override
public synchronized Service create() {
reset();
sendEvent(Event.START_CREATE);
initializeServiceConfigurations();
initializeServiceModel();
initializeDefaultInterceptors();
if (invoker != null) {
getService().setInvoker(getInvoker());
} else {
getService().setInvoker(createInvoker());
}
if (getExecutor() != null) {
getService().setExecutor(getExecutor());
}
if (getDataBinding() != null) {
getService().setDataBinding(getDataBinding());
}
getService().put(MethodDispatcher.class.getName(), getMethodDispatcher());
createEndpoints();
fillInSchemaCrossreferences();
Service serv = getService();
sendEvent(Event.END_CREATE, serv);
return serv;
}
内容来源于网络,如有侵权,请联系作者删除!