當前位置: 首頁>>代碼示例>>Java>>正文


Java BrowseNextRequest類代碼示例

本文整理匯總了Java中com.digitalpetri.opcua.stack.core.types.structured.BrowseNextRequest的典型用法代碼示例。如果您正苦於以下問題:Java BrowseNextRequest類的具體用法?Java BrowseNextRequest怎麽用?Java BrowseNextRequest使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BrowseNextRequest類屬於com.digitalpetri.opcua.stack.core.types.structured包,在下文中一共展示了BrowseNextRequest類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: run

import com.digitalpetri.opcua.stack.core.types.structured.BrowseNextRequest; //導入依賴的package包/類
@Override
public void run() {
    BrowseNextRequest request = service.getRequest();

    List<BrowseResult> results = Lists.newArrayList();

    ByteString[] cs = request.getContinuationPoints() != null ?
            request.getContinuationPoints() : new ByteString[0];

    for (ByteString bs : cs) {
        if (request.getReleaseContinuationPoints()) {
            results.add(release(bs));
        } else {
            results.add(references(bs));
        }
    }

    ResponseHeader header = service.createResponseHeader();
    BrowseNextResponse response = new BrowseNextResponse(
            header, results.toArray(new BrowseResult[results.size()]), new DiagnosticInfo[0]);

    service.setResponse(response);
}
 
開發者ID:digitalpetri,項目名稱:ua-server-sdk,代碼行數:24,代碼來源:BrowseHelper.java

示例2: browseNext

import com.digitalpetri.opcua.stack.core.types.structured.BrowseNextRequest; //導入依賴的package包/類
public void browseNext(ServiceRequest<BrowseNextRequest, BrowseNextResponse> service) {
    OpcUaServer server = service.attr(ServiceAttributes.SERVER_KEY).get();

    BrowseNextRequest request = service.getRequest();

    if (request.getContinuationPoints().length >
            server.getConfig().getLimits().getMaxBrowseContinuationPoints().intValue()) {

        service.setServiceFault(StatusCodes.Bad_TooManyOperations);
    } else {
        server.getExecutorService().execute(new BrowseNext(server, service));
    }
}
 
開發者ID:digitalpetri,項目名稱:ua-server-sdk,代碼行數:14,代碼來源:BrowseHelper.java

示例3: addServiceSet

import com.digitalpetri.opcua.stack.core.types.structured.BrowseNextRequest; //導入依賴的package包/類
default void addServiceSet(ViewServiceSet serviceSet) {
    addRequestHandler(BrowseRequest.class, serviceSet::onBrowse);
    addRequestHandler(BrowseNextRequest.class, serviceSet::onBrowseNext);
    addRequestHandler(TranslateBrowsePathsToNodeIdsRequest.class, serviceSet::onTranslateBrowsePaths);
    addRequestHandler(RegisterNodesRequest.class, serviceSet::onRegisterNodes);
    addRequestHandler(UnregisterNodesRequest.class, serviceSet::onUnregisterNodes);
}
 
開發者ID:digitalpetri,項目名稱:opc-ua-stack,代碼行數:8,代碼來源:UaStackServer.java

示例4: onBrowseNext

import com.digitalpetri.opcua.stack.core.types.structured.BrowseNextRequest; //導入依賴的package包/類
@Override
public void onBrowseNext(ServiceRequest<BrowseNextRequest, BrowseNextResponse> service) throws UaException {
    Session session = session(service);

    session.getViewServices().onBrowseNext(service);
}
 
開發者ID:digitalpetri,項目名稱:ua-server-sdk,代碼行數:7,代碼來源:SessionManager.java

示例5: BrowseNext

import com.digitalpetri.opcua.stack.core.types.structured.BrowseNextRequest; //導入依賴的package包/類
private BrowseNext(OpcUaServer server,
                   ServiceRequest<BrowseNextRequest, BrowseNextResponse> service) {

    this.server = server;
    this.service = service;
}
 
開發者ID:digitalpetri,項目名稱:ua-server-sdk,代碼行數:7,代碼來源:BrowseHelper.java

示例6: onBrowseNext

import com.digitalpetri.opcua.stack.core.types.structured.BrowseNextRequest; //導入依賴的package包/類
@Override
public void onBrowseNext(ServiceRequest<BrowseNextRequest, BrowseNextResponse> service) {
    browseNextCounter.record(service);

    browseHelper.browseNext(service);
}
 
開發者ID:digitalpetri,項目名稱:ua-server-sdk,代碼行數:7,代碼來源:ViewServices.java

示例7: onBrowseNext

import com.digitalpetri.opcua.stack.core.types.structured.BrowseNextRequest; //導入依賴的package包/類
default void onBrowseNext(ServiceRequest<BrowseNextRequest, BrowseNextResponse> serviceRequest) throws UaException {
    serviceRequest.setServiceFault(StatusCodes.Bad_ServiceUnsupported);
}
 
開發者ID:digitalpetri,項目名稱:opc-ua-stack,代碼行數:4,代碼來源:ViewServiceSet.java


注:本文中的com.digitalpetri.opcua.stack.core.types.structured.BrowseNextRequest類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。