示例#1
0
 @Override
 void stopListening() {
   server.suspendAccepts();
   UndertowLogger.ROOT_LOGGER.listenerSuspend("AJP", getName());
   IoUtils.safeClose(server);
   UndertowLogger.ROOT_LOGGER.listenerStopped(
       "AJP", getName(), getBinding().getValue().getSocketAddress());
 }
示例#2
0
 @Override
 void startListening(
     XnioWorker worker,
     InetSocketAddress socketAddress,
     ChannelListener<AcceptingChannel<StreamConnection>> acceptListener)
     throws IOException {
   server = worker.createStreamConnectionServer(socketAddress, acceptListener, SERVER_OPTIONS);
   server.resumeAccepts();
   UndertowLogger.ROOT_LOGGER.listenerStarted(
       "AJP", getName(), binding.getValue().getSocketAddress());
 }
示例#3
0
 @Override
 protected void performBoottime(
     OperationContext context,
     ModelNode operation,
     ModelNode model,
     ServiceVerificationHandler verificationHandler,
     List<ServiceController<?>> newControllers)
     throws OperationFailedException {
   try {
     Class.forName(
         "org.apache.jasper.compiler.JspRuntimeContext", true, this.getClass().getClassLoader());
   } catch (ClassNotFoundException e) {
     UndertowLogger.ROOT_LOGGER.couldNotInitJsp(e);
   }
 }
 @Override
 public void start(StartContext context) throws StartException {
   UndertowLogger.ROOT_LOGGER.infof(
       "registering handler %s under path '%s'", handlerChain, locationPath);
   host.getValue().registerHandler(locationPath, handlerChain);
 }