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