Class TPSConnection
java.lang.Object
org.dogtagpki.tps.TPSConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanstatic org.slf4j.Loggerstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionTPSConnection(InputStream in, OutputStream out) TPSConnection(InputStream in, OutputStream out, boolean chunked) -
Method Summary
Modifier and TypeMethodDescriptionstatic intGetter for static variable maxMessageSize.read()static voidsetMaxMessageSize(int maxSize) Setter for static variable maxMessageSize.voidwrite(TPSMessage message)
-
Field Details
-
MAX_MESSAGE_SIZE_DEFAULT
public static final int MAX_MESSAGE_SIZE_DEFAULT- See Also:
-
logger
public static org.slf4j.Logger logger -
in
-
out
-
chunked
public boolean chunked
-
-
Constructor Details
-
TPSConnection
-
TPSConnection
-
-
Method Details
-
read
- Throws:
IOException
-
write
- Throws:
IOException
-
getMaxMessageSize
public static int getMaxMessageSize()Getter for static variable maxMessageSize.- Returns:
- maxMessageSize
-
setMaxMessageSize
public static void setMaxMessageSize(int maxSize) Setter for static variable maxMessageSize. This variable places a limit on the value (and thus, length) of the first parameter of an incoming stream of data. For example, incoming data conforms to the following format: . TPSConnection will read one character (typically , but can be any char), and will expect the second character to be an . The following characters until the are interpreted as the messageSize. This number cannot be larger than maxMessageSize.- Parameters:
maxSize-
-