Codota Logo
GenericRequestChannel.getMethod
Code IndexAdd Codota to your IDE (free)

How to use
getMethod
method
in
org.eclipse.kapua.service.device.management.request.message.request.GenericRequestChannel

Best Java code snippets using org.eclipse.kapua.service.device.management.request.message.request.GenericRequestChannel.getMethod (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: eclipse/kapua

@Override
protected KuraRequestChannel translateChannel(GenericRequestChannel kapuaChannel) throws KapuaException {
  KuraRequestChannel kuraRequestChannel = new KuraRequestChannel();
  kuraRequestChannel.setMessageClassification(CONTROL_MESSAGE_CLASSIFIER);
  StringBuilder appIdSb = new StringBuilder();
  appIdSb.append(kapuaChannel.getAppName().getValue());
  if (kapuaChannel.getVersion() != null && StringUtils.isNotEmpty(kapuaChannel.getVersion().getValue())) {
    appIdSb.append("-")
        .append(kapuaChannel.getVersion().getValue());
  }
  kuraRequestChannel.setAppId(appIdSb.toString());
  kuraRequestChannel.setMethod(MethodDictionaryKapuaKura.get(kapuaChannel.getMethod()));
  kuraRequestChannel.setResources(kapuaChannel.getResources());
  return kuraRequestChannel;
}
origin: org.eclipse.kapua/kapua-translator-kapua-kura

@Override
protected KuraRequestChannel translateChannel(GenericRequestChannel kapuaChannel) throws KapuaException {
  KuraRequestChannel kuraRequestChannel = new KuraRequestChannel();
  kuraRequestChannel.setMessageClassification(CONTROL_MESSAGE_CLASSIFIER);
  StringBuilder appIdSb = new StringBuilder();
  appIdSb.append(kapuaChannel.getAppName().getValue());
  if (kapuaChannel.getVersion() != null && StringUtils.isNotEmpty(kapuaChannel.getVersion().getValue())) {
    appIdSb.append("-")
        .append(kapuaChannel.getVersion().getValue());
  }
  kuraRequestChannel.setAppId(appIdSb.toString());
  kuraRequestChannel.setMethod(MethodDictionaryKapuaKura.get(kapuaChannel.getMethod()));
  kuraRequestChannel.setResources(kapuaChannel.getResources());
  return kuraRequestChannel;
}
origin: org.eclipse.kapua/kapua-device-request-internal

PermissionFactory permissionFactory = locator.getFactory(PermissionFactory.class);
Actions action;
switch (requestInput.getChannel().getMethod()) {
case EXECUTE:
  action = Actions.execute;
genericRequestChannel.setAppName(requestInput.getChannel().getAppName());
genericRequestChannel.setVersion(requestInput.getChannel().getVersion());
genericRequestChannel.setMethod(requestInput.getChannel().getMethod());
genericRequestChannel.setResources(requestInput.getChannel().getResources());
deviceEventCreator.setPosition(responseMessage.getPosition());
deviceEventCreator.setSentOn(responseMessage.getSentOn());
deviceEventCreator.setAction(genericRequestChannel.getMethod());
deviceEventCreator.setResponseCode(responseMessage.getResponseCode());
deviceEventCreator.setEventMessage(responseMessage.getPayload().toDisplayString());
origin: eclipse/kapua

PermissionFactory permissionFactory = locator.getFactory(PermissionFactory.class);
Actions action;
switch (requestInput.getChannel().getMethod()) {
case EXECUTE:
  action = Actions.execute;
genericRequestChannel.setAppName(requestInput.getChannel().getAppName());
genericRequestChannel.setVersion(requestInput.getChannel().getVersion());
genericRequestChannel.setMethod(requestInput.getChannel().getMethod());
genericRequestChannel.setResources(requestInput.getChannel().getResources());
deviceEventCreator.setPosition(responseMessage.getPosition());
deviceEventCreator.setSentOn(responseMessage.getSentOn());
deviceEventCreator.setAction(genericRequestChannel.getMethod());
deviceEventCreator.setResponseCode(responseMessage.getResponseCode());
deviceEventCreator.setEventMessage(responseMessage.getPayload().toDisplayString());
origin: org.eclipse.kapua/kapua-device-management-request-internal

PermissionFactory permissionFactory = locator.getFactory(PermissionFactory.class);
Actions action;
switch (requestInput.getChannel().getMethod()) {
case EXECUTE:
  action = Actions.execute;
genericRequestChannel.setAppName(requestInput.getChannel().getAppName());
genericRequestChannel.setVersion(requestInput.getChannel().getVersion());
genericRequestChannel.setMethod(requestInput.getChannel().getMethod());
genericRequestChannel.setResources(requestInput.getChannel().getResources());
deviceEventCreator.setPosition(responseMessage.getPosition());
deviceEventCreator.setSentOn(responseMessage.getSentOn());
deviceEventCreator.setAction(genericRequestChannel.getMethod());
deviceEventCreator.setResponseCode(responseMessage.getResponseCode());
deviceEventCreator.setEventMessage(responseMessage.getPayload().toDisplayString());
org.eclipse.kapua.service.device.management.request.message.requestGenericRequestChannelgetMethod

Popular methods of GenericRequestChannel

  • getAppName
  • getResources
    Get the resources
  • getVersion
  • setAppName
  • setMethod
  • setResources
    Set the resources
  • setVersion

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • BoxLayout (javax.swing)
  • JCheckBox (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now