Class ServerConfiguration
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.sshtools.daemon.configuration.ServerConfiguration
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Version:
- $Revision: 1.12 $
- Author:
- $author$
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ServerConfiguration object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
endElement
(String uri, String localName, String qname) boolean
int
int
int
int
getPort()
void
reload
(InputStream in) void
startElement
(String uri, String localName, String qname, Attributes attrs) toString()
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
ServerConfiguration
public ServerConfiguration(InputStream in) throws SAXException, ParserConfigurationException, IOException Creates a new ServerConfiguration object.- Parameters:
in
-- Throws:
SAXException
ParserConfigurationException
IOException
-
-
Method Details
-
reload
- Parameters:
in
-- Throws:
SAXException
ParserConfigurationException
IOException
-
startElement
public void startElement(String uri, String localName, String qname, Attributes attrs) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Parameters:
uri
-localName
-qname
-attrs
-- Throws:
SAXException
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Parameters:
ch
-start
-length
-- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Parameters:
uri
-localName
-qname
-- Throws:
SAXException
-
getRequiredAuthentications
- Returns:
-
getAllowedAuthentications
- Returns:
-
getAllowTcpForwarding
public boolean getAllowTcpForwarding()- Returns:
-
getAuthenticationBanner
- Returns:
-
getCommandPort
public int getCommandPort()- Returns:
-
getUserConfigDirectory
- Returns:
-
getAuthorizationFile
- Returns:
-
getListenAddress
- Returns:
-
getMaxConnections
public int getMaxConnections()- Returns:
-
getMaxAuthentications
public int getMaxAuthentications()- Returns:
-
getPort
public int getPort()- Returns:
-
getServerHostKeys
-
getSubsystems
- Returns:
-
getTerminalProvider
- Returns:
-
toString
-