本文整理匯總了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);
}
}
示例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;
}
示例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;
}