Package org.apache.shindig.gadgets.process

Examples of org.apache.shindig.gadgets.process.ProcessingException


   * @throws ProcessingException
   */
  public GadgetsHandlerApi.MetadataResponse getMetadata(GadgetsHandlerApi.MetadataRequest request)
      throws ProcessingException {
    if (request.getUrl() == null) {
      throw new ProcessingException("Missing url paramater", HttpResponse.SC_BAD_REQUEST);
    }
    if (request.getContainer() == null) {
      throw new ProcessingException("Missing container paramater", HttpResponse.SC_BAD_REQUEST);
    }
    if (request.getFields() == null) {
      throw new ProcessingException("Missing fields paramater", HttpResponse.SC_BAD_REQUEST);
    }
    Set<String> fields = beanFilter.processBeanFields(request.getFields());

    GadgetContext context = new MetadataGadgetContext(request);
    Gadget gadget = processor.process(context);
View Full Code Here


   * @throws SecurityTokenException
   */
  public GadgetsHandlerApi.TokenResponse getToken(GadgetsHandlerApi.TokenRequest request)
      throws SecurityTokenException, ProcessingException {
    if (request.getUrl() == null) {
      throw new ProcessingException("Missing url paramater", HttpResponse.SC_BAD_REQUEST);
    }
    if (request.getContainer() == null) {
      throw new ProcessingException("Missing container paramater", HttpResponse.SC_BAD_REQUEST);
    }
    if (request.getFields() == null) {
      throw new ProcessingException("Missing fields paramater", HttpResponse.SC_BAD_REQUEST);
    }
    Set<String> fields = beanFilter.processBeanFields(request.getFields());

    SecurityToken tokenData = convertToken(request.getToken(), request.getContainer(),
        request.getUrl().toString());
View Full Code Here

   * @throws ProcessingException
   */
  public GadgetsHandlerApi.MetadataResponse getMetadata(GadgetsHandlerApi.MetadataRequest request)
      throws ProcessingException {
    if (request.getUrl() == null) {
      throw new ProcessingException("Missing url paramater", HttpResponse.SC_BAD_REQUEST);
    }
    if (request.getContainer() == null) {
      throw new ProcessingException("Missing container paramater", HttpResponse.SC_BAD_REQUEST);
    }
    if (request.getFields() == null) {
      throw new ProcessingException("Missing fields paramater", HttpResponse.SC_BAD_REQUEST);
    }
    Set<String> fields = beanFilter.processBeanFields(request.getFields());

    GadgetContext context = new MetadataGadgetContext(request);
    Gadget gadget = processor.process(context);
View Full Code Here

   * @throws SecurityTokenException
   */
  public GadgetsHandlerApi.TokenResponse getToken(GadgetsHandlerApi.TokenRequest request)
      throws SecurityTokenException, ProcessingException {
    if (request.getUrl() == null) {
      throw new ProcessingException("Missing url paramater", HttpResponse.SC_BAD_REQUEST);
    }
    if (request.getContainer() == null) {
      throw new ProcessingException("Missing container paramater", HttpResponse.SC_BAD_REQUEST);
    }
    if (request.getFields() == null) {
      throw new ProcessingException("Missing fields paramater", HttpResponse.SC_BAD_REQUEST);
    }
    Set<String> fields = beanFilter.processBeanFields(request.getFields());

    SecurityToken tokenData = convertToken(request.getToken(), request.getContainer(),
        request.getUrl().toString());
View Full Code Here

  }

  @Override
  public Gadget process(GadgetContext context) throws ProcessingException {

    ProcessingException exception = exceptions.get(context.getUrl());
    if (exception != null) {
      throw exception;
    }

    try {
View Full Code Here

TOP

Related Classes of org.apache.shindig.gadgets.process.ProcessingException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.