Package ratpack.util.internal

Examples of ratpack.util.internal.InternalRatpackError


        return channel.writeAndFlush(headersResponse).addListener(ChannelFutureListener.CLOSE_ON_FAILURE);
      } else {
        return null;
      }
    } else {
      LOGGER.warn("attempt at double transmission for: " + ratpackRequest.getRawUri(), new InternalRatpackError(""));
      return null;
    }
  }
View Full Code Here


      try {
        doThen(new UserActionFulfiller(executionBacking, then));
      } catch (ExecutionException e) {
        throw e;
      } catch (Exception e) {
        throw new InternalRatpackError("failed to add promise resume action", e);
      }
    } else {
      throw new MultiplePromiseSubscriptionException();
    }
  }
View Full Code Here

        try {
          // have to encode + to stop URLDecoder from treating it as a space (it's only synonymous with %20 in query strings)
          String s = part.replaceAll("\\+", "%2B");
          segment(URLDecoder.decode(s, "UTF8"));
        } catch (UnsupportedEncodingException e) {
          throw new InternalRatpackError("UTF8 is not available", e);
        }
      }
      hasTrailingSlash = rawPath.substring(rawPath.length() - 1, rawPath.length()).equals("/");
    }
View Full Code Here

    String string = toString();

    try {
      return new URI(string);
    } catch (URISyntaxException e) {
      throw new InternalRatpackError("HttpUriBuilder produced invalid URI: " + toString(), e);
    }
  }
View Full Code Here

TOP

Related Classes of ratpack.util.internal.InternalRatpackError

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.