Tabnine Logo
org.eclipse.jetty.util
Code IndexAdd Tabnine to your IDE (free)

How to use org.eclipse.jetty.util

Best Java code snippets using org.eclipse.jetty.util (Showing top 20 results out of 2,142)

origin: apache/hbase

private MultiException addMultiException(MultiException exception, Exception e) {
 if(exception == null){
  exception = new MultiException();
 }
 exception.add(e);
 return exception;
}
origin: igniterealtime/Openfire

public static void checkAndClose(ClassLoader classLoader)
{
  if (!isWindows() || !(classLoader instanceof URLClassLoader))
  {
    return;
  }
  HashSet<String> leakedJarNames = preClose((URLClassLoader)classLoader);
  cleanupJarFileFactory(leakedJarNames);
}
origin: org.eclipse.jetty/jetty-webapp

  @Override
  public void clear()
  {
    _entries.clear();
  }
}
origin: neo4j/neo4j

private static QueuedThreadPool createQueuedThreadPool( JettyThreadCalculator jtc )
{
  BlockingQueue<Runnable> queue = new BlockingArrayQueue<>( jtc.getMinThreads(), jtc.getMinThreads(), jtc.getMaxCapacity() );
  QueuedThreadPool threadPool = new QueuedThreadPool( jtc.getMaxThreads(), jtc.getMinThreads(), JETTY_THREAD_POOL_IDLE_TIMEOUT, queue );
  threadPool.setThreadPoolBudget( null ); // mute warnings about Jetty thread pool size
  return threadPool;
}
origin: spring-projects/spring-framework

private DataBuffer toDataBuffer(ContentChunk chunk) {
  // We must copy until this is resolved:
  // https://github.com/eclipse/jetty.project/issues/2429
  // Use copy instead of buffer wrapping because Callback#succeeded() is
  // used not only to release the buffer but also to request more data
  // which is a problem for codecs that buffer data.
  DataBuffer buffer = this.bufferFactory.allocateBuffer(chunk.buffer.capacity());
  buffer.write(chunk.buffer);
  chunk.callback.succeeded();
  return buffer;
}
origin: apache/ignite

/** {@inheritDoc} */
@Override protected void beforeTest() throws Exception {
  afterPutEvts = new BlockingArrayQueue<>();
  afterRmvEvts = new BlockingArrayQueue<>();
}
origin: perwendel/spark

private void checkCharAppend() throws IOException {
  if (_state != UTF8_ACCEPT) {
    _appendable.append(REPLACEMENT);
    int state = _state;
    _state = UTF8_ACCEPT;
    throw new org.eclipse.jetty.util.Utf8Appendable.NotUtf8Exception("char appended in state " + state);
  }
}
origin: dropwizard/dropwizard

@Override
protected void doStart() throws Exception {
  super.doStart();
  for (String key : handlers.keySet()) {
    handlers.get(key).start();
  }
}
origin: pentaho/pentaho-kettle

public SubtransExecutor( String subTransName, Trans parentTrans, TransMeta subtransMeta, boolean shareVariables,
             TransExecutorParameters parameters, String subStep ) {
 this.subTransName = subTransName;
 this.parentTrans = parentTrans;
 this.subtransMeta = subtransMeta;
 this.shareVariables = shareVariables;
 this.parameters = parameters;
 this.subStep = subStep;
 this.statuses = new LinkedHashMap<>();
 this.running = new ConcurrentHashSet<>();
}
origin: dropwizard/dropwizard

@Override
public void handle(String target,
          Request baseRequest,
          HttpServletRequest request,
          HttpServletResponse response) throws IOException, ServletException {
  final Handler handler = handlers.getBest(baseRequest.getRequestURI());
  if (handler != null) {
    handler.handle(target, baseRequest, request, response);
  }
}
origin: org.eclipse.jetty/jetty-webapp

/**
 * Match the class name against the pattern
 *
 * @param name name of the class to match
 * @return true if class matches the pattern
 */
public boolean match(String name)
{       
  return _patterns.test(name);
}

origin: dropwizard/dropwizard

  @Override
  public Handler[] getHandlers() {
    return handlers.entrySet().stream().map(e -> e.getValue()).toArray(Handler[]::new);
  }
}
origin: org.eclipse.jetty/jetty-webapp

@Override
public int size()
{
  return _entries.size();
}
origin: org.eclipse.jetty/jetty-webapp

@Override
public boolean isEmpty()
{
  return _entries.isEmpty();
}

origin: org.eclipse.jetty/jetty-webapp

@Override
public boolean test(String name)
{
  return _entries.getBest(name)!=null;
}
origin: org.apache.hadoop/hadoop-common

private MultiException addMultiException(MultiException exception, Exception e) {
 if(exception == null){
  exception = new MultiException();
 }
 exception.add(e);
 return exception;
}
origin: dropwizard/dropwizard

protected ThreadPool createThreadPool(MetricRegistry metricRegistry) {
  final BlockingQueue<Runnable> queue = new BlockingArrayQueue<>(minThreads, maxThreads, maxQueuedRequests);
  final InstrumentedQueuedThreadPool threadPool =
      new InstrumentedQueuedThreadPool(metricRegistry, maxThreads, minThreads,
                       (int) idleThreadTimeout.toMilliseconds(), queue);
  threadPool.setName("dw");
  return threadPool;
}
origin: perwendel/spark

protected void checkState() {
  if (!isUtf8SequenceComplete()) {
    _codep = 0;
    _state = UTF8_ACCEPT;
    try {
      _appendable.append(REPLACEMENT);
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
    throw new org.eclipse.jetty.util.Utf8Appendable.NotUtf8Exception("incomplete UTF8 sequence");
  }
}
origin: dropwizard/dropwizard

@Override
protected void doStop() throws Exception {
  super.doStop();
  for (String key : handlers.keySet()) {
    handlers.get(key).stop();
  }
}
origin: org.eclipse.jetty/jetty-webapp

@Override
public int size()
{
  return _entries.size();
}

org.eclipse.jetty.util

Most used classes

  • SslContextFactory
    SslContextFactory is used to configure SSL connectors as well as HttpClient. It holds all SSL parame
  • QueuedThreadPool
  • Resource
    Abstract resource class.
  • Logger
    A simple logging facade that is intended simply to capture the style of logging as used by Jetty.
  • Constraint
    Describe an auth and/or data constraint.
  • StringUtil,
  • MultiMap,
  • IO,
  • Password,
  • ResourceCollection,
  • B64Code,
  • URIUtil,
  • ManagedObject,
  • Credential,
  • ContainerLifeCycle,
  • Callback,
  • AbstractLifeCycle,
  • LifeCycle,
  • ManagedAttribute
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