当前位置: 首页>>代码示例>>Java>>正文


Java CapabilityCategory类代码示例

本文整理汇总了Java中org.onvif.ver10.schema.CapabilityCategory的典型用法代码示例。如果您正苦于以下问题:Java CapabilityCategory类的具体用法?Java CapabilityCategory怎么用?Java CapabilityCategory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CapabilityCategory类属于org.onvif.ver10.schema包,在下文中一共展示了CapabilityCategory类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import org.onvif.ver10.schema.CapabilityCategory; //导入依赖的package包/类
/**
 * Initalizes the addresses used for SOAP messages and to get the internal
 * IP, if given IP is a proxy.
 * 
 * @throws ConnectException
 *             Get thrown if device doesn't give answers to
 *             GetCapabilities()
 * @throws SOAPException
 */
protected void init() throws ConnectException, SOAPException {
	BindingProvider deviceServicePort = (BindingProvider) new DeviceService().getDevicePort();
	this.device = getServiceProxy(deviceServicePort, deviceUri).create(Device.class);
	
	resetSystemDateAndTime();
	
	Capabilities capabilities = this.device.getCapabilities(Arrays.asList(CapabilityCategory.ALL));
	if (capabilities == null) {
		throw new ConnectException("Capabilities not reachable.");
	}

	//String localDeviceUri = capabilities.getDevice().getXAddr();

	if (capabilities.getMedia() != null && capabilities.getMedia().getXAddr() != null) {
		this.media = new MediaService().getMediaPort();
		this.media = getServiceProxy((BindingProvider) media, capabilities.getMedia().getXAddr()).create(Media.class);
	}

	if (capabilities.getPTZ() != null && capabilities.getPTZ().getXAddr() != null) {
		this.ptz = new PtzService().getPtzPort();
		this.ptz = getServiceProxy((BindingProvider) ptz, capabilities.getPTZ().getXAddr()).create(PTZ.class);
	}

	if (capabilities.getImaging() != null && capabilities.getImaging().getXAddr() != null) {
		this.imaging = new ImagingService().getImagingPort();
		this.imaging = getServiceProxy((BindingProvider) imaging, capabilities.getImaging().getXAddr()).create(ImagingPort.class);
	}

	if (capabilities.getEvents() != null && capabilities.getEvents().getXAddr() != null) {
		this.events = new EventService().getEventPort();
		this.events = getServiceProxy((BindingProvider) events, capabilities.getEvents().getXAddr()).create(EventPortType.class);
	}
}
 
开发者ID:fpompermaier,项目名称:onvif,代码行数:43,代码来源:OnvifDevice.java

示例2: getCategory

import org.onvif.ver10.schema.CapabilityCategory; //导入依赖的package包/类
/**
 * Gets the value of the category property.
 * 
 * <p>
 * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object.
 * This is why there is not a <CODE>set</CODE> method for the category property.
 * 
 * <p>
 * For example, to add a new item, do as follows:
 * 
 * <pre>
 * getCategory().add(newItem);
 * </pre>
 * 
 * 
 * <p>
 * Objects of the following type(s) are allowed in the list {@link CapabilityCategory }
 * 
 * 
 */
public List<CapabilityCategory> getCategory() {
	if (category == null) {
		category = new ArrayList<CapabilityCategory>();
	}
	return this.category;
}
 
开发者ID:D2Edev,项目名称:onvifjava,代码行数:27,代码来源:GetCapabilities.java

示例3: getCategory

import org.onvif.ver10.schema.CapabilityCategory; //导入依赖的package包/类
/**
 * Gets the value of the category property.
 * 
 * <p>
 * This accessor method returns a reference to the live list,
 * not a snapshot. Therefore any modification you make to the
 * returned list will be present inside the JAXB object.
 * This is why there is not a <CODE>set</CODE> method for the category property.
 * 
 * <p>
 * For example, to add a new item, do as follows:
 * <pre>
 *    getCategory().add(newItem);
 * </pre>
 * 
 * 
 * <p>
 * Objects of the following type(s) are allowed in the list
 * {@link CapabilityCategory }
 * 
 * 
 */
public List<CapabilityCategory> getCategory() {
    if (category == null) {
        category = new ArrayList<CapabilityCategory>();
    }
    return this.category;
}
 
开发者ID:fpompermaier,项目名称:onvif,代码行数:29,代码来源:GetCapabilities.java


注:本文中的org.onvif.ver10.schema.CapabilityCategory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。