|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.dsmlv2.engine.Dsmlv2Engine
public class Dsmlv2Engine
This is the DSMLv2Engine. It can be use to execute operations on a LDAP Server and get the results of these operations. The format used for request and responses is the DSMLv2 format.
Constructor Summary | |
---|---|
Dsmlv2Engine(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password)
Creates a new instance of Dsmlv2Engine. |
Method Summary | |
---|---|
java.lang.String |
processDSML(java.io.InputStream inputStream,
java.lang.String inputEncoding)
Processes the file given and return the result of the operations |
java.lang.String |
processDSML(java.lang.String dsmlInput)
Processes the file given and return the result of the operations |
java.lang.String |
processDSMLFile(java.lang.String fileName)
Processes the file given and return the result of the operations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dsmlv2Engine(java.lang.String host, int port, java.lang.String user, java.lang.String password)
host
- the server hostport
- the server portuser
- the server admin DNpassword
- the server admin's passwordMethod Detail |
---|
public java.lang.String processDSML(java.lang.String dsmlInput) throws org.xmlpull.v1.XmlPullParserException
dsmlInput
- the DSMLv2 formatted request input
org.xmlpull.v1.XmlPullParserException
- if an error occurs in the parserpublic java.lang.String processDSMLFile(java.lang.String fileName) throws org.xmlpull.v1.XmlPullParserException, java.io.FileNotFoundException
fileName
- the path to the file
org.xmlpull.v1.XmlPullParserException
- if an error occurs in the parser
java.io.FileNotFoundException
- if the file does not existpublic java.lang.String processDSML(java.io.InputStream inputStream, java.lang.String inputEncoding) throws org.xmlpull.v1.XmlPullParserException
inputStream
- contains a raw byte input stream of possibly unknown encoding (when inputEncoding is null).inputEncoding
- if not null it MUST be used as encoding for inputStream
org.xmlpull.v1.XmlPullParserException
- if an error occurs in the parser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |