1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/server.R
\name{Server}
\alias{Server}
\title{Server class}
\description{
The \code{Server} class is the parent class for \code{\link{WebServer}} and
\code{\link{PipeServer}}. This class defines an interface and is not meant to
be instantiated.
}
\section{Methods}{
\describe{
\item{\code{stop()}}{Stops a running server.}
\item{\code{isRunning()}}{Returns TRUE if the server is currently running.}
\item{\code{getStaticPaths()}}{Returns a list of \code{\link{staticPath}}
objects for the server.
}
\item{\code{setStaticPath(..., .list = NULL)}}{Sets a static path for the
current server. Each static path can be given as a named argument, or as
an named item in \code{.list}. If there already exists a static path with
the same name, it will be replaced.
}
\item{\code{removeStaticPath(path)}}{Removes a static path with the given
name.
}
\item{\code{getStaticPathOptions()}}{Returns a list of default
\code{staticPathOptions} for the current server. Each static path will
use these options by default, but they can be overridden for each static
path.
}
\item{\code{setStaticPathOption(..., .list = NULL)}}{Sets one or more
static path options. Each option can be given as a named argument, or as
a named item in \code{.list}.
}
}
}
\seealso{
\code{\link{WebServer}} and \code{\link{PipeServer}}.
}
\keyword{internal}
\section{Methods}{
\subsection{Public methods}{
\itemize{
\item \href{#method-Server-stop}{\code{Server$stop()}}
\item \href{#method-Server-isRunning}{\code{Server$isRunning()}}
\item \href{#method-Server-getStaticPaths}{\code{Server$getStaticPaths()}}
\item \href{#method-Server-setStaticPath}{\code{Server$setStaticPath()}}
\item \href{#method-Server-removeStaticPath}{\code{Server$removeStaticPath()}}
\item \href{#method-Server-getStaticPathOptions}{\code{Server$getStaticPathOptions()}}
\item \href{#method-Server-setStaticPathOption}{\code{Server$setStaticPathOption()}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Server-stop"></a>}}
\if{latex}{\out{\hypertarget{method-Server-stop}{}}}
\subsection{Method \code{stop()}}{
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{Server$stop()}\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Server-isRunning"></a>}}
\if{latex}{\out{\hypertarget{method-Server-isRunning}{}}}
\subsection{Method \code{isRunning()}}{
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{Server$isRunning()}\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Server-getStaticPaths"></a>}}
\if{latex}{\out{\hypertarget{method-Server-getStaticPaths}{}}}
\subsection{Method \code{getStaticPaths()}}{
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{Server$getStaticPaths()}\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Server-setStaticPath"></a>}}
\if{latex}{\out{\hypertarget{method-Server-setStaticPath}{}}}
\subsection{Method \code{setStaticPath()}}{
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{Server$setStaticPath(..., .list = NULL)}\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Server-removeStaticPath"></a>}}
\if{latex}{\out{\hypertarget{method-Server-removeStaticPath}{}}}
\subsection{Method \code{removeStaticPath()}}{
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{Server$removeStaticPath(path)}\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Server-getStaticPathOptions"></a>}}
\if{latex}{\out{\hypertarget{method-Server-getStaticPathOptions}{}}}
\subsection{Method \code{getStaticPathOptions()}}{
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{Server$getStaticPathOptions()}\if{html}{\out{</div>}}
}
}
\if{html}{\out{<hr>}}
\if{html}{\out{<a id="method-Server-setStaticPathOption"></a>}}
\if{latex}{\out{\hypertarget{method-Server-setStaticPathOption}{}}}
\subsection{Method \code{setStaticPathOption()}}{
\subsection{Usage}{
\if{html}{\out{<div class="r">}}\preformatted{Server$setStaticPathOption(..., .list = NULL)}\if{html}{\out{</div>}}
}
}
}
|