com.ibm.security.certclient.fmt
Class PkHttpEventFormatter
- java.lang.Object
com.ibm.security.certclient.base.PkEventFormatter
com.ibm.security.certclient.fmt.PkHttpEventFormatter
All implemented interfaces:
- public final class PkHttpEventFormatter
- extends PkEventFormatter
- implements PkConstants
Author:
Krishna Yellepeddy , Eric Storch
Field Summary
Fields inherited from interface com.ibm.security.certclient.base.PkConstants |
---|
BIG_ONE, BIG_TWO, PKI_DB_CONN, PKI_DB_CONNS, PKI_ISSUER_DN, PKI_ISSUER_HOST, PKI_ISSUER_PORT, PKI_OPER, PKI_ROOT |
Fields inherited from interface com.ibm.security.certclient.base.PkAttrKind |
---|
ATTR_APPLIED, ATTR_APPROVED, ATTR_NAMES |
Fields inherited from interface com.ibm.security.certclient.base.PkRevoConstants |
---|
REVO_BAD_SINCE_DATE, REVO_CRL_EXT, REVO_OPER, REVO_PUBLISH_IMMEDIATELY, REVO_REASON, REVO_ROOT |
Fields inherited from interface com.ibm.security.certclient.base.PkHttpConstants |
---|
HTTP_BASE_NAME, HTTP_FILE_NAME, HTTP_METHOD, HTTP_ROOT, HTTP_VERSION |
Fields inherited from interface com.ibm.security.certclient.base.PkPollConstants |
---|
POLL_REFERENCE, POLL_ROOT, POLL_TIME_TO_CHECK_BACK |
Constructor Summary
Constructor and Description |
---|
PkHttpEventFormatter()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
readEvent(Object source,InputStream is,PkReqEvent req)
|
|
|
writeException(Exception e,OutputStream os)
|
|
writeHttpRep(PkHttpRepEvent httpRep,OutputStream out)
|
Methods inherited from class com.ibm.security.certclient.base.PkEventFormatter |
---|
writeCertRep, writeCertReq, writeConfRep, writeConfReq, writeEvent, writeGnrlRep, writeGnrlReq, writeHttpReq, writeInitRep, writeInitReq, writeKrecRep, writeKrecReq, writeKupdRep, writeKupdReq, writePollReq, writeRep, writeReq, writeRevoRep, writeRevoReq, writeSecnRep, writeSecnReq, writeXcerRep, writeXcerReq |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
PkHttpEventFormatter
- public PkHttpEventFormatter()
Method Detail
readEvent
- public PkEvent readEvent(Object source,
- InputStream is,
- PkReqEvent req)
- throws PkException
- IOException
Returns a new instance of a subclass of PkEvent by reading it from an
inputStream. This is a factory method.
Specified by:
readEvent
in class PkEventFormatter
Parameters:
source
- The instance that creates the event. Usually
this
. is
- The inputstream from which the event is read. req
- The request that generated the corresponding reply. This
parameter can be null when readEvent is expected to return
a PkReqevent
. Throws:
writeException
- public void writeException(Exception e,
- OutputStream os)
- throws IOException
Description copied from class:
PkEventFormatter
Writes the exception
e
to the ouputStream
Specified by:
writeException
in class PkEventFormatter
Parameters:
e
- The exception to write. os
- The output stream where the exception will be
written. Throws:
writeHttpRep
- public void writeHttpRep(PkHttpRepEvent httpRep,
- OutputStream out)
- throws IOException
Description copied from class:
PkEventFormatter
Writes a
PkHttpRepEvent
to the outputStream
.
This implementation simply invokes the writeRep
method.
Overrides:
writeHttpRep
in class PkEventFormatter
Throws:
PkEventFormatter