Package org.apache.amber.oauth2.common.error

Examples of org.apache.amber.oauth2.common.error.OAuthError$ResourceResponse


      GetResource getResource = ResourceServingUtil.decode(req);

      try
      {
         ResourceResponse resource = producer.getResource(getResource);
         ResourceContext resourceContext = resource.getResourceContext();
         byte[] itemBinary = resourceContext.getItemBinary();
         String itemString = resourceContext.getItemString();

         final String mimeType = resourceContext.getMimeType();
         if (!ParameterValidation.isNullOrEmpty(mimeType))
View Full Code Here


      ResourceSuspended, UnsupportedLocale, UnsupportedMimeType, UnsupportedMode, UnsupportedWindowState
   {
      forceSessionAccess();
      GetResource getResource = WSRPTypeFactory.createGetResource(registrationContext, portletContext.value, runtimeContext, userContext, resourceParams);

      ResourceResponse response = producer.getResource(getResource);

      resourceContext.value = response.getResourceContext();
      sessionContext.value = response.getSessionContext();
      portletContext.value = response.getPortletContext();
      extensions.value = response.getExtensions();
   }
View Full Code Here

      ResourceSuspended, UnsupportedLocale, UnsupportedMimeType, UnsupportedMode, UnsupportedWindowState
   {
      forceSessionAccess();
      GetResource getResource = WSRPTypeFactory.createGetResource(registrationContext, portletContext.value, runtimeContext, userContext, resourceParams);

      ResourceResponse response = producer.getResource(getResource);

      resourceContext.value = response.getResourceContext();
      sessionContext.value = response.getSessionContext();
      portletContext.value = response.getPortletContext();
      extensions.value = response.getExtensions();
   }
View Full Code Here

      ResourceSuspended, UnsupportedLocale, UnsupportedMimeType, UnsupportedMode, UnsupportedWindowState
   {
      forceSessionAccess();
      GetResource getResource = WSRPTypeFactory.createGetResource(registrationContext, portletContext.value, runtimeContext, userContext, resourceParams);

      ResourceResponse response = producer.getResource(getResource);

      resourceContext.value = response.getResourceContext();
      sessionContext.value = response.getSessionContext();
      portletContext.value = response.getPortletContext();
      extensions.value = response.getExtensions();
   }
View Full Code Here

      final Holder<List<Extension>> extensions = new Holder<List<Extension>>();
      consumer.getMarkupService().getResource(request.getRegistrationContext(), portletContextHolder, request.getRuntimeContext(),
         request.getUserContext(), request.getResourceParams(), resourceContextHolder, sessionContextHolder, extensions);

      ResourceResponse resourceResponse = WSRPTypeFactory.createResourceResponse(resourceContextHolder.value);
      resourceResponse.setPortletContext(portletContextHolder.value);
      resourceResponse.setSessionContext(sessionContextHolder.value);
      if (ParameterValidation.existsAndIsNotEmpty(extensions.value) && !WSRPUtils.isSingletonListWithNullOrEmptyElement(extensions.value))
      {
         resourceResponse.getExtensions().addAll(extensions.value);
      }
      return resourceResponse;
   }
View Full Code Here

   }

   public static ResourceResponse createResourceResponse(ResourceContext resourceContext)
   {
      ParameterValidation.throwIllegalArgExceptionIfNull(resourceContext, "ResourceContext");
      ResourceResponse resourceResponse = new ResourceResponse();
      resourceResponse.setResourceContext(resourceContext);
      return resourceResponse;
   }
View Full Code Here

      GetResource getResource = ResourceServingUtil.decode(req);

      try
      {
         ResourceResponse resource = producer.getResource(getResource);
         ResourceContext resourceContext = resource.getResourceContext();
         byte[] itemBinary = resourceContext.getItemBinary();
         String itemString = resourceContext.getItemString();

         final String mimeType = resourceContext.getMimeType();
         if (!ParameterValidation.isNullOrEmpty(mimeType))
View Full Code Here

   }

   public static ResourceResponse createResourceResponse(ResourceContext resourceContext)
   {
      ParameterValidation.throwIllegalArgExceptionIfNull(resourceContext, "ResourceContext");
      ResourceResponse resourceResponse = new ResourceResponse();
      resourceResponse.setResourceContext(resourceContext);
      return resourceResponse;
   }
View Full Code Here

      ResourceSuspended, UnsupportedLocale, UnsupportedMimeType, UnsupportedMode, UnsupportedWindowState
   {
      forceSessionAccess();
      GetResource getResource = WSRPTypeFactory.createGetResource(registrationContext, portletContext.value, runtimeContext, userContext, resourceParams);

      ResourceResponse response = producer.getResource(getResource);

      resourceContext.value = response.getResourceContext();
      sessionContext.value = response.getSessionContext();
      portletContext.value = response.getPortletContext();
      extensions.value = response.getExtensions();
   }
View Full Code Here

   }

   public static ResourceResponse createResourceResponse(ResourceContext resourceContext)
   {
      ParameterValidation.throwIllegalArgExceptionIfNull(resourceContext, "ResourceContext");
      ResourceResponse resourceResponse = new ResourceResponse();
      resourceResponse.setResourceContext(resourceContext);
      return resourceResponse;
   }
View Full Code Here

TOP

Related Classes of org.apache.amber.oauth2.common.error.OAuthError$ResourceResponse

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.