Tabnine Logo
DefaultHandlerRegistry$MethodCaller.getRestRequestItem
Code IndexAdd Tabnine to your IDE (free)

How to use
getRestRequestItem
method
in
org.apache.shindig.protocol.DefaultHandlerRegistry$MethodCaller

Best Java code snippets using org.apache.shindig.protocol.DefaultHandlerRegistry$MethodCaller.getRestRequestItem (Showing top 5 results out of 315)

origin: apache/shindig

 public Future<?> execute(Map<String, String[]> parameters, Reader body,
              SecurityToken token, BeanConverter converter) {
  RequestItem item;
  try {
   // bind the body contents if available
   if (body != null) {
    parameters.put(operation.bodyParam(), new String[]{IOUtils.toString(body)});
   }
   item = methodCaller.getRestRequestItem(parameters, token, converter, beanJsonConverter);
  } catch (Exception e) {
   return Futures.immediateFailedFuture(e);
  }
  try {
   listener.executing(item);
   return methodCaller.call(handlerProvider.get(), item);
  } catch (Exception e) {
   return Futures.immediateFailedFuture(e);
  } finally {
   listener.executed(item);
  }
 }
}
origin: org.apache.shindig/shindig-common

 public Future<?> execute(Map<String, String[]> parameters, Reader body,
              SecurityToken token, BeanConverter converter) {
  RequestItem item;
  try {
   // bind the body contents if available
   if (body != null) {
    parameters.put(operation.bodyParam(), new String[]{IOUtils.toString(body)});
   }
   item = methodCaller.getRestRequestItem(parameters, token, converter, beanJsonConverter);
  } catch (Exception e) {
   return Futures.immediateFailedFuture(e);
  }
  try {
   listener.executing(item);
   return methodCaller.call(handlerProvider.get(), item);
  } catch (Exception e) {
   return Futures.immediateFailedFuture(e);
  } finally {
   listener.executed(item);
  }
 }
}
origin: org.wso2.org.apache.shindig/shindig-common

 public Future<?> execute(Map<String, String[]> parameters, Reader body,
              SecurityToken token, BeanConverter converter) {
  RequestItem item;
  try {
   // bind the body contents if available
   if (body != null) {
    parameters.put(operation.bodyParam(), new String[]{IOUtils.toString(body)});
   }
   item = methodCaller.getRestRequestItem(parameters, token, converter, beanJsonConverter);
  } catch (Exception e) {
   return Futures.immediateFailedFuture(e);
  }
  try {
   listener.executing(item);
   return methodCaller.call(handlerProvider.get(), item);
  } catch (Exception e) {
   return Futures.immediateFailedFuture(e);
  } finally {
   listener.executed(item);
  }
 }
}
origin: com.lmco.shindig/shindig-common

 public Future<?> execute(Map<String, String[]> parameters, Reader body,
              SecurityToken token, BeanConverter converter) {
  RequestItem item;
  try {
   // bind the body contents if available
   if (body != null) {
    parameters.put(operation.bodyParam(), new String[]{IOUtils.toString(body)});
   }
   item = methodCaller.getRestRequestItem(parameters, token, converter,
     beanJsonConverter);
   } catch (Exception e) {
    return ImmediateFuture.errorInstance(e);
   }
  try {
   listener.executing(item);
   return methodCaller.call(handlerProvider.get(), item);
  } catch (Exception e) {
   return ImmediateFuture.errorInstance(e);
  } finally {
    listener.executed(item);
  }
 }
}
origin: org.gatein.shindig/shindig-common

 public Future<?> execute(Map<String, String[]> parameters, Reader body,
              SecurityToken token, BeanConverter converter) {
  RequestItem item;
  try {
   // bind the body contents if available
   if (body != null) {
    parameters.put(operation.bodyParam(), new String[]{IOUtils.toString(body)});
   }
   item = methodCaller.getRestRequestItem(parameters, token, converter,
     beanJsonConverter);
   } catch (Exception e) {
    return ImmediateFuture.errorInstance(e);
   }
  try {
   listener.executing(item);
   return methodCaller.call(handlerProvider.get(), item);
  } catch (Exception e) {
   return ImmediateFuture.errorInstance(e);
  } finally {
    listener.executed(item);
  }
 }
}
org.apache.shindig.protocolDefaultHandlerRegistry$MethodCallergetRestRequestItem

Popular methods of DefaultHandlerRegistry$MethodCaller

  • <init>
    Create information needed to call a method
  • call
  • getRequestItem
  • getRpcRequestItem

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • From CI to AI: The AI layer in your organization
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