congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ActionResponse.setFaultResponse
Code IndexAdd Tabnine to your IDE (free)

How to use
setFaultResponse
method
in
org.cybergarage.upnp.control.ActionResponse

Best Java code snippets using org.cybergarage.upnp.control.ActionResponse.setFaultResponse (Showing top 3 results out of 315)

origin: i2p/i2p.i2p

public boolean performActionListener(ActionRequest actionReq)
{
  ActionListener listener = (ActionListener)getActionListener();
  if (listener == null)
    return false;
  ActionResponse actionRes = new ActionResponse();
  setStatus(UPnPStatus.INVALID_ACTION);
  clearOutputAgumentValues();
  if (listener.actionControlReceived(this) == true) {
    actionRes.setResponse(this);
  }
  else {
    UPnPStatus upnpStatus = getStatus();
    actionRes.setFaultResponse(upnpStatus.getCode(), upnpStatus.getDescription());
  }
  if (Debug.isOn() == true)
    actionRes.print();
  actionReq.post(actionRes);
  return true;
}
origin: geniusgithub/MediaPlayer

public boolean performActionListener(ActionRequest actionReq)
{
  ActionListener listener = (ActionListener)getActionListener();
  if (listener == null)
    return false;
  ActionResponse actionRes = new ActionResponse();
  setStatus(UPnPStatus.INVALID_ACTION);
  clearOutputAgumentValues();
  if (listener.actionControlReceived(this) == true) {
    actionRes.setResponse(this);
  }
  else {
    UPnPStatus upnpStatus = getStatus();
    actionRes.setFaultResponse(upnpStatus.getCode(), upnpStatus.getDescription());
  }
  if (Debug.isOn() == true)
    actionRes.print();
  actionReq.post(actionRes);
  return true;
}
origin: cybergarage/cybergarage-upnp

public boolean performActionListener(ActionRequest actionReq)
{
  ActionListener listener = (ActionListener)getActionListener();
  if (listener == null)
    return false;
  ActionResponse actionRes = new ActionResponse();
  setStatus(UPnPStatus.INVALID_ACTION);
  clearOutputAgumentValues();
  if (listener.actionControlReceived(this) == true) {
    actionRes.setResponse(this);
  }
  else {
    UPnPStatus upnpStatus = getStatus();
    actionRes.setFaultResponse(upnpStatus.getCode(), upnpStatus.getDescription());
  }
  if (Debug.isOn() == true)
    actionRes.print();
  actionReq.post(actionRes);
  return true;
}
org.cybergarage.upnp.controlActionResponsesetFaultResponse

Popular methods of ActionResponse

  • <init>
  • createResponseNode
  • getActionResponseNode
  • getBodyNode
  • getEnvelopeNode
  • getResponse
  • getStatusCode
  • isSuccessful
  • print
  • setContent
  • setHeader
  • setResponse
  • setHeader,
  • setResponse,
  • setStatusCode

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Reference (javax.naming)
  • BoxLayout (javax.swing)
  • JComboBox (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now