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
_rcsid
protected AdminProfile
adminProfile
protected javax.servlet.jsp.JspWriter
writer
-
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 void
flush()
Flush the streamjava.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.java.lang.String
mapPasswordToKey(java.lang.String password)
Map a password to a unique key.void
newLine()
Write a newlinevoid
print(boolean b)
Write a booleanvoid
print(char c)
Write a charvoid
print(char[] c)
Write an array of charsvoid
print(double d)
Write a doublevoid
print(float f)
Write a floatvoid
print(int i)
Write an intvoid
print(long l)
Write a longvoid
print(java.lang.Object o)
Write an objectvoid
print(java.lang.String s)
Write a stringvoid
println(boolean b)
Write a booleanvoid
println(char c)
Write a charvoid
println(char[] c)
Write an array of charsvoid
println(double d)
Write a doublevoid
println(float f)
Write a floatvoid
println(int i)
Write an intvoid
println(long l)
Write a longvoid
println(java.lang.Object o)
Write an objectvoid
println(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.IOException
Flush the stream- Specified by:
flush
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
newLine
public void newLine() throws java.io.IOException
Write a newline- Specified by:
newLine
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
print
public void print(boolean b) throws java.io.IOException
Write a boolean- Specified by:
print
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
print
public void print(char c) throws java.io.IOException
Write a char- Specified by:
print
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
print
public void print(char[] c) throws java.io.IOException
Write an array of chars- Specified by:
print
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
print
public void print(double d) throws java.io.IOException
Write a double- Specified by:
print
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
print
public void print(float f) throws java.io.IOException
Write a float- Specified by:
print
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
print
public void print(int i) throws java.io.IOException
Write an int- Specified by:
print
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
print
public void print(long l) throws java.io.IOException
Write a long- Specified by:
print
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
print
public void print(java.lang.Object o) throws java.io.IOException
Write an object- Specified by:
print
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
print
public void print(java.lang.String s) throws java.io.IOException
Write a string- Specified by:
print
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
println
public void println(boolean b) throws java.io.IOException
Write a boolean- Specified by:
println
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
println
public void println(char c) throws java.io.IOException
Write a char- Specified by:
println
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
println
public void println(char[] c) throws java.io.IOException
Write an array of chars- Specified by:
println
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
println
public void println(double d) throws java.io.IOException
Write a double- Specified by:
println
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
println
public void println(float f) throws java.io.IOException
Write a float- Specified by:
println
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
println
public void println(int i) throws java.io.IOException
Write an int- Specified by:
println
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
println
public void println(long l) throws java.io.IOException
Write a long- Specified by:
println
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
println
public void println(java.lang.Object o) throws java.io.IOException
Write an object- Specified by:
println
in interfaceIHTTPOutputActivity
- Throws:
java.io.IOException
-
println
public void println(java.lang.String s) throws java.io.IOException
Write a string- Specified by:
println
in 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:
mapPasswordToKey
in 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:
mapKeyToPassword
in interfaceIPasswordMapperActivity
- Parameters:
key
- is the key.- Returns:
- the password.
-
-