Package org.apache.manifoldcf.ui.jsp
Class JspWrapper
- java.lang.Object
-
- org.apache.manifoldcf.ui.jsp.JspWrapper
-
- All Implemented Interfaces:
IHTTPOutput,IHTTPOutputActivity,IPasswordMapperActivity
public class JspWrapper extends java.lang.Object implements IHTTPOutput
This class provides an implementation of IHTTPOutput, which provides output services to connector UI interfaces. More broadly, it provides the services that all connectors will need in order to provide UI components.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidprotected AdminProfileadminProfileprotected javax.servlet.jsp.JspWriterwriter
-
Constructor Summary
Constructors Constructor Description JspWrapper(javax.servlet.jsp.JspWriter writer, AdminProfile adminProfile)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()Flush the streamjava.lang.StringmapKeyToPassword(java.lang.String key)Convert a key, created by mapPasswordToKey, back to the original password, within the lifetime of the browser session.java.lang.StringmapPasswordToKey(java.lang.String password)Map a password to a unique key.voidnewLine()Write a newlinevoidprint(boolean b)Write a booleanvoidprint(char c)Write a charvoidprint(char[] c)Write an array of charsvoidprint(double d)Write a doublevoidprint(float f)Write a floatvoidprint(int i)Write an intvoidprint(long l)Write a longvoidprint(java.lang.Object o)Write an objectvoidprint(java.lang.String s)Write a stringvoidprintln(boolean b)Write a booleanvoidprintln(char c)Write a charvoidprintln(char[] c)Write an array of charsvoidprintln(double d)Write a doublevoidprintln(float f)Write a floatvoidprintln(int i)Write an intvoidprintln(long l)Write a longvoidprintln(java.lang.Object o)Write an objectvoidprintln(java.lang.String s)Write a string
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
writer
protected final javax.servlet.jsp.JspWriter writer
-
adminProfile
protected final AdminProfile adminProfile
-
-
Constructor Detail
-
JspWrapper
public JspWrapper(javax.servlet.jsp.JspWriter writer, AdminProfile adminProfile)Constructor.
-
-
Method Detail
-
flush
public void flush() throws java.io.IOExceptionFlush the stream- Specified by:
flushin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
newLine
public void newLine() throws java.io.IOExceptionWrite a newline- Specified by:
newLinein interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
print
public void print(boolean b) throws java.io.IOExceptionWrite a boolean- Specified by:
printin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
print
public void print(char c) throws java.io.IOExceptionWrite a char- Specified by:
printin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
print
public void print(char[] c) throws java.io.IOExceptionWrite an array of chars- Specified by:
printin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
print
public void print(double d) throws java.io.IOExceptionWrite a double- Specified by:
printin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
print
public void print(float f) throws java.io.IOExceptionWrite a float- Specified by:
printin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
print
public void print(int i) throws java.io.IOExceptionWrite an int- Specified by:
printin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
print
public void print(long l) throws java.io.IOExceptionWrite a long- Specified by:
printin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
print
public void print(java.lang.Object o) throws java.io.IOExceptionWrite an object- Specified by:
printin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
print
public void print(java.lang.String s) throws java.io.IOExceptionWrite a string- Specified by:
printin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
println
public void println(boolean b) throws java.io.IOExceptionWrite a boolean- Specified by:
printlnin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
println
public void println(char c) throws java.io.IOExceptionWrite a char- Specified by:
printlnin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
println
public void println(char[] c) throws java.io.IOExceptionWrite an array of chars- Specified by:
printlnin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
println
public void println(double d) throws java.io.IOExceptionWrite a double- Specified by:
printlnin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
println
public void println(float f) throws java.io.IOExceptionWrite a float- Specified by:
printlnin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
println
public void println(int i) throws java.io.IOExceptionWrite an int- Specified by:
printlnin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
println
public void println(long l) throws java.io.IOExceptionWrite a long- Specified by:
printlnin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
println
public void println(java.lang.Object o) throws java.io.IOExceptionWrite an object- Specified by:
printlnin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
println
public void println(java.lang.String s) throws java.io.IOExceptionWrite a string- Specified by:
printlnin interfaceIHTTPOutputActivity- Throws:
java.io.IOException
-
mapPasswordToKey
public java.lang.String mapPasswordToKey(java.lang.String password)
Map a password to a unique key. This method works within a specific given browser session to replace an existing password with a key which can be used to look up the password at a later time.- Specified by:
mapPasswordToKeyin interfaceIPasswordMapperActivity- Parameters:
password- is the password.- Returns:
- the key.
-
mapKeyToPassword
public java.lang.String mapKeyToPassword(java.lang.String key)
Convert a key, created by mapPasswordToKey, back to the original password, within the lifetime of the browser session. If the provided key is not an actual key, instead the key value is assumed to be a new password value.- Specified by:
mapKeyToPasswordin interfaceIPasswordMapperActivity- Parameters:
key- is the key.- Returns:
- the password.
-
-