Class TomcatServer

java.lang.Object
org.tinystruct.AbstractApplication
org.tinystruct.system.TomcatServer
All Implemented Interfaces:
Cloneable, Runnable, org.tinystruct.Application, org.tinystruct.system.Bootstrap

public class TomcatServer extends org.tinystruct.AbstractApplication implements org.tinystruct.system.Bootstrap
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    DefaultHandler is responsible for handling HTTP requests and managing the application's lifecycle.
  • Field Summary

    Fields inherited from class org.tinystruct.AbstractApplication

    commandLines, threadLocalContext

    Fields inherited from interface org.tinystruct.Application

    CHARSET, CLSID, DEFAULT_BASE_URL, DEFAULT_LANGUAGE, LANGUAGE, LANGUAGE_CODE, LANGUAGE_TAG, REQUEST_ACTION
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    void
     
    void
     
     

    Methods inherited from class org.tinystruct.AbstractApplication

    destroy, getCommandLines, getConfiguration, getConfiguration, getContext, getInstance, getLink, getLink, getLocale, getName, getProperty, getProperty, getVariable, help, init, invoke, invoke, isTemplateRequired, run, setAction, setConfiguration, setContext, setLocale, setLocale, setSharedVariable, setSharedVariable, setTemplate, setTemplateName, setTemplateRequired, setText, setText, setText, setVariable, setVariable, setVariable, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Runnable

    run
  • Constructor Details

    • TomcatServer

      public TomcatServer()
  • Method Details

    • init

      public void init()
      Specified by:
      init in interface org.tinystruct.Application
    • start

      public void start() throws org.tinystruct.ApplicationException
      Specified by:
      start in interface org.tinystruct.system.Bootstrap
      Throws:
      org.tinystruct.ApplicationException
    • stop

      public void stop()
      Specified by:
      stop in interface org.tinystruct.system.Bootstrap
    • exceptionCaught

      public Object exceptionCaught() throws org.tinystruct.ApplicationException
      Throws:
      org.tinystruct.ApplicationException
    • version

      public String version()
      Specified by:
      version in interface org.tinystruct.Application