Package org.apache.abdera.protocol.server.provider

Examples of org.apache.abdera.protocol.server.provider.ProviderManager


    ServiceContext context,
    HttpServletRequest request,
    HttpServletResponse response)
      throws IOException {
   
    ProviderManager manager = context.getProviderManager();
    Provider provider = manager.getProvider();
    RequestContext requestContext = getRequestContext(context,request);
   
    try {
      if (preconditions(provider, requestContext, response)) {
        output(response,process(provider, requestContext));
      }
    } catch (Throwable e) {
      logger.error("Error producing output", e);
      try {
        output(response,new EmptyResponseContext(500));
      } catch (Exception ex) {
        logger.error("Error outputting error", ex);
        response.sendError(500);
      }
    } finally {
      manager.release(provider);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.abdera.protocol.server.provider.ProviderManager

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.