Class XlayerApp

java.lang.Object
org.restlet.Restlet
org.restlet.Application
org.opensextant.xlayer.server.XlayerApp
All Implemented Interfaces:
org.restlet.Uniform
Direct Known Subclasses:
XlayerRestlet

public abstract class XlayerApp extends org.restlet.Application
XlayerApp is an abstract "Webapp" running inside the Server.... well, you must implement one first.
Author:
ubaldino
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Logger
    The log.
    protected String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    XlayerApp(org.restlet.Context c)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Banner at start improves visibility of your product.
    abstract void
     
    abstract org.restlet.Restlet
     
    protected void
     
    protected void
    error(String msg, Exception err)
     
    static String
     
    protected void
    info(String msg)
     
    protected boolean
     

    Methods inherited from class org.restlet.Application

    createOutboundRoot, getConnectorService, getConnegService, getConverterService, getCurrent, getDecoderService, getEncoderService, getInboundRoot, getMetadataService, getOutboundRoot, getRangeService, getRole, getRoles, getServices, getStatusService, getTaskService, getTunnelService, handle, isDebugging, setConnectorService, setConnegService, setContext, setConverterService, setCurrent, setDebugging, setDecoderService, setEncoderService, setInboundRoot, setInboundRoot, setMetadataService, setOutboundRoot, setOutboundRoot, setRangeService, setRoles, setStatusService, setTaskService, setTunnelService, start, stop

    Methods inherited from class org.restlet.Restlet

    createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setDescription, setFinderClass, setName, setOwner

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      protected Logger log
      The log.
    • version

      protected String version
  • Constructor Details

    • XlayerApp

      protected XlayerApp(org.restlet.Context c)
  • Method Details

    • getVersion

      public static String getVersion(String buf)
    • banner

      protected void banner() throws IOException
      Banner at start improves visibility of your product.
      Throws:
      IOException
    • error

      protected void error(String msg, Exception err)
    • info

      protected void info(String msg)
    • debug

      protected void debug(String msg)
    • isDebug

      protected boolean isDebug()
    • createInboundRoot

      public abstract org.restlet.Restlet createInboundRoot()
      Overrides:
      createInboundRoot in class org.restlet.Application
    • configure

      public abstract void configure() throws org.opensextant.ConfigException
      Throws:
      org.opensextant.ConfigException