/** * Is it PAYLOAD or MESSAGE ?? * * @param c endpoint class * @return Service.Mode.PAYLOAD or Service.Mode.MESSAGE */ private static Service.Mode getServiceMode(Class<?> c) { ServiceMode mode = c.getAnnotation(ServiceMode.class); return (mode == null) ? Service.Mode.PAYLOAD : mode.value(); } }
/** * Is it PAYLOAD or MESSAGE ?? * * @param c endpoint class * @return Service.Mode.PAYLOAD or Service.Mode.MESSAGE */ private static Service.Mode getServiceMode(Class<?> c) { ServiceMode mode = c.getAnnotation(ServiceMode.class); return (mode == null) ? Service.Mode.PAYLOAD : mode.value(); } }
/** * Is it PAYLOAD or MESSAGE ?? * * @param c endpoint class * @return Service.Mode.PAYLOAD or Service.Mode.MESSAGE */ private static Service.Mode getServiceMode(Class<?> c) { ServiceMode mode = c.getAnnotation(ServiceMode.class); return (mode == null) ? Service.Mode.PAYLOAD : mode.value(); } }
public DataBindingCallback.Mode getServiceMode() { DataBindingCallback.Mode mode = DataBindingCallback.Mode.PARTS; if (wsProvider != null) { mode = serviceMode != null ? DataBindingCallback.Mode.fromServiceMode(serviceMode.value()) : DataBindingCallback.Mode.PAYLOAD; } return mode; }
public static ServiceModeAnnot createFromAnnotation(Annotation annotation) { ServiceModeAnnot returnAnnot = null; if (annotation != null && annotation instanceof javax.xml.ws.ServiceMode) { javax.xml.ws.ServiceMode sm = (javax.xml.ws.ServiceMode) annotation; returnAnnot = new ServiceModeAnnot(sm.value()); } return returnAnnot; }
public static ServiceModeAnnot createFromAnnotation(Annotation annotation) { ServiceModeAnnot returnAnnot = null; if (annotation != null && annotation instanceof javax.xml.ws.ServiceMode) { javax.xml.ws.ServiceMode sm = (javax.xml.ws.ServiceMode) annotation; returnAnnot = new ServiceModeAnnot(sm.value()); } return returnAnnot; }
public Service.Mode getAnnoServiceModeValue() { // This annotation is only valid on Provider-based endpoints. if (isProviderBased() && serviceModeValue == null) { if (getAnnoServiceMode() != null) { serviceModeValue = getAnnoServiceMode().value(); } else { serviceModeValue = ServiceMode_DEFAULT; } } return serviceModeValue; }
public Service.Mode getAnnoServiceModeValue() { // This annotation is only valid on Provider-based endpoints. if (isProviderBased() && serviceModeValue == null) { if (getAnnoServiceMode() != null) { serviceModeValue = getAnnoServiceMode().value(); } else { serviceModeValue = ServiceMode_DEFAULT; } } return serviceModeValue; }
/** * This method will be used to attach @ServiceMode annotation data to the * <code>DescriptionBuilderComposite</code> * * @param composite - <code>DescriptionBuildercomposite</code> */ private void attachServiceModeAnnotation(DescriptionBuilderComposite composite) { ServiceMode serviceMode = (ServiceMode)ConverterUtils.getAnnotation( ServiceMode.class, serviceClass); if (serviceMode != null) { // Attach @ServiceMode annotated data ServiceModeAnnot smAnnot = ServiceModeAnnot.createWebServiceAnnotImpl(); smAnnot.setValue(serviceMode.value()); composite.setServiceModeAnnot(smAnnot); } }
/** * This method will be used to attach @ServiceMode annotation data to the * <code>DescriptionBuilderComposite</code> * * @param composite - <code>DescriptionBuildercomposite</code> */ private void attachServiceModeAnnotation(DescriptionBuilderComposite composite) { ServiceMode serviceMode = (ServiceMode)ConverterUtils.getAnnotation( ServiceMode.class, serviceClass); if (serviceMode != null) { // Attach @ServiceMode annotated data ServiceModeAnnot smAnnot = ServiceModeAnnot.createWebServiceAnnotImpl(); smAnnot.setValue(serviceMode.value()); composite.setServiceModeAnnot(smAnnot); } }