com.ibm.security.certclient.base
Class PkEventFormatter
- java.lang.Object
com.ibm.security.certclient.base.PkEventFormatter
- public abstract class PkEventFormatter
- extends Object
Constructor Summary
Constructor and Description |
---|
PkEventFormatter()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
readEvent(Object source,InputStream in,PkReqEvent req)
Returns a new instance of a subclass of PkEvent by reading it from an
inputStream.
|
|
writeCertRep(PkCertRepEvent rep,OutputStream outputStream)
Writes a
PkCertRepEvent to the outputStream .
|
|
writeCertReq(PkCertReqEvent req,OutputStream outputStream)
Writes a
PkCertReqEvent to the outputStream .
|
|
writeConfRep(PkConfRepEvent rep,OutputStream outputStream)
Writes a
PkConfRepEvent to the outputStream .
|
|
writeConfReq(PkConfReqEvent req,OutputStream outputStream)
Writes a
PkConfReqEvent to the outputStream .
|
|
writeEvent(PkEvent ev,OutputStream outputStream)
Writes a
PkEvent to the outputStream .
|
|
writeException(Exception e,OutputStream outputStream)
Writes the exception
e to the ouputStream
|
|
writeGnrlRep(PkGnrlRepEvent rep,OutputStream outputStream)
Writes a
PkGnrlRepEvent to the outputStream .
|
|
writeGnrlReq(PkGnrlReqEvent req,OutputStream outputStream)
Writes a
PkGnrlReqEvent to the outputStream .
|
|
writeHttpRep(PkHttpRepEvent rep,OutputStream outputStream)
Writes a
PkHttpRepEvent to the outputStream .
|
|
writeHttpReq(PkHttpReqEvent req,OutputStream outputStream)
Writes a
PkHttpReqEvent to the outputStream .
|
|
writeInitRep(PkInitRepEvent rep,OutputStream outputStream)
Writes a
PkInitRepEvent to the outputStream .
|
|
writeInitReq(PkInitReqEvent req,OutputStream outputStream)
Writes a
PkInitReqEvent to the outputStream .
|
|
writeKrecRep(PkKrecRepEvent rep,OutputStream outputStream)
Writes a
PkKrecRepEvent to the outputStream .
|
|
writeKrecReq(PkKrecReqEvent req,OutputStream outputStream)
Writes a
PkKrecReqEvent to the outputStream .
|
|
writeKupdRep(PkKupdRepEvent rep,OutputStream outputStream)
Writes a
PkKupdRepEvent to the outputStream .
|
|
writeKupdReq(PkKupdReqEvent req,OutputStream outputStream)
Writes a
PkKupdReqEvent to the outputStream .
|
|
writePollReq(PkPollReqEvent req,OutputStream outputStream)
Writes a
PkPollReqEvent to the outputStream .
|
|
writeRep(PkRepEvent rep,OutputStream outputStream)
Writes a
PkRepEvent to the outputStream .
|
|
writeReq(PkReqEvent req,OutputStream outputStream)
Writes a
PkReqEvent to the outputStream .
|
|
writeRevoRep(PkRevoRepEvent rep,OutputStream outputStream)
Writes a
PkRevoRepEvent to the outputStream .
|
|
writeRevoReq(PkRevoReqEvent req,OutputStream outputStream)
Writes a
PkRevoReqEvent to the outputStream .
|
|
writeSecnRep(PkSecnRepEvent rep,OutputStream outputStream)
Writes a
PkSecnRepEvent to the outputStream .
|
|
writeSecnReq(PkSecnReqEvent req,OutputStream outputStream)
Writes a
PkSecnReqEvent to the outputStream .
|
|
writeXcerRep(PkXcerRepEvent rep,OutputStream outputStream)
Writes a
PkXcerRepEvent to the outputStream .
|
|
writeXcerReq(PkXcerReqEvent req,OutputStream outputStream)
Writes a
PkXcerReqEvent to the outputStream .
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
PkEventFormatter
- public PkEventFormatter()
Method Detail
readEvent
- public abstract PkEvent readEvent( Object source,
- InputStream in,
- PkReqEvent req)
- throws PkException
- IOException
source
- The instance that creates the event. Usually
this
. in
- 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
. writeException
- public abstract void writeException( Exception e,
- OutputStream outputStream)
- throws IOException
e
to the ouputStream
e
- The exception to write. outputStream
- The output stream where the exception will be
written. writeEvent
- public void writeEvent(PkEvent ev,
- OutputStream outputStream)
- throws IOException
PkEvent
to the outputStream
.
This is the last method in a PkEventFormatter
that has a chance
to write an event. This method gets called when the
PkEventFormatter
has not provided a more specific method to
write the event.
writeReq
- public void writeReq(PkReqEvent req,
- OutputStream outputStream)
- throws IOException
PkReqEvent
to the outputStream
.
This implementation simply invokes the writeReq
method.
writeHttpReq
- public void writeHttpReq(PkHttpReqEvent req,
- OutputStream outputStream)
- throws IOException
PkHttpReqEvent
to the outputStream
.
This implementation simply invokes the writeReq
method.
writePollReq
- public void writePollReq(PkPollReqEvent req,
- OutputStream outputStream)
- throws IOException
PkPollReqEvent
to the outputStream
.
This implementation simply invokes the writeReq
method.
writeCertReq
- public void writeCertReq(PkCertReqEvent req,
- OutputStream outputStream)
- throws IOException
- PkException
PkCertReqEvent
to the outputStream
.
This implementation simply invokes the writeReq
method.
writeInitReq
- public void writeInitReq(PkInitReqEvent req,
- OutputStream outputStream)
- throws IOException
- PkException
PkInitReqEvent
to the outputStream
.
This implementation simply invokes the writeCertReq
method.
writeSecnReq
- public void writeSecnReq(PkSecnReqEvent req,
- OutputStream outputStream)
- throws IOException
- PkException
PkSecnReqEvent
to the outputStream
.
This implementation simply invokes the writeCertReq
method.
writeKupdReq
- public void writeKupdReq(PkKupdReqEvent req,
- OutputStream outputStream)
- throws IOException
- PkException
PkKupdReqEvent
to the outputStream
.
This implementation simply invokes the writeCertReq
method.
writeXcerReq
- public void writeXcerReq(PkXcerReqEvent req,
- OutputStream outputStream)
- throws IOException
- PkException
PkXcerReqEvent
to the outputStream
.
This implementation simply invokes the writeCertReq
method.
writeKrecReq
- public void writeKrecReq(PkKrecReqEvent req,
- OutputStream outputStream)
- throws IOException
PkKrecReqEvent
to the outputStream
.
This implementation simply invokes the writeReq
method.
writeConfReq
- public void writeConfReq(PkConfReqEvent req,
- OutputStream outputStream)
- throws IOException
PkConfReqEvent
to the outputStream
.
This implementation simply invokes the writeReq
method.
writeRevoReq
- public void writeRevoReq(PkRevoReqEvent req,
- OutputStream outputStream)
- throws IOException
- PkException
PkRevoReqEvent
to the outputStream
.
This implementation simply invokes the writeReq
method.
writeGnrlReq
- public void writeGnrlReq(PkGnrlReqEvent req,
- OutputStream outputStream)
- throws IOException
PkGnrlReqEvent
to the outputStream
.
This implementation simply invokes the writeReq
method.
writeRep
- public void writeRep(PkRepEvent rep,
- OutputStream outputStream)
- throws IOException
- PkException
PkRepEvent
to the outputStream
.
This implementation simply invokes the writeEvent
method.
writeHttpRep
- public void writeHttpRep(PkHttpRepEvent rep,
- OutputStream outputStream)
- throws IOException
- PkException
PkHttpRepEvent
to the outputStream
.
This implementation simply invokes the writeRep
method.
writeCertRep
- public void writeCertRep(PkCertRepEvent rep,
- OutputStream outputStream)
- throws IOException
- PkException
PkCertRepEvent
to the outputStream
.
This implementation simply invokes the writeRep
method.
writeInitRep
- public void writeInitRep(PkInitRepEvent rep,
- OutputStream outputStream)
- throws IOException
- PkException
PkInitRepEvent
to the outputStream
.
This implementation simply invokes the writeCertRep
method.
writeSecnRep
- public void writeSecnRep(PkSecnRepEvent rep,
- OutputStream outputStream)
- throws IOException
- PkException
PkSecnRepEvent
to the outputStream
.
This implementation simply invokes the writeCertRep
method.
writeKupdRep
- public void writeKupdRep(PkKupdRepEvent rep,
- OutputStream outputStream)
- throws IOException
- PkException
PkKupdRepEvent
to the outputStream
.
This implementation simply invokes the writeCertRep
method.
writeXcerRep
- public void writeXcerRep(PkXcerRepEvent rep,
- OutputStream outputStream)
- throws IOException
- PkException
PkXcerRepEvent
to the outputStream
.
This implementation simply invokes the writeCertRep
method.
writeKrecRep
- public void writeKrecRep(PkKrecRepEvent rep,
- OutputStream outputStream)
- throws IOException
- PkException
PkKrecRepEvent
to the outputStream
.
This implementation simply invokes the writeRep
method.
writeRevoRep
- public void writeRevoRep(PkRevoRepEvent rep,
- OutputStream outputStream)
- throws IOException
- PkException
PkRevoRepEvent
to the outputStream
.
This implementation simply invokes the writeRep
method.
writeConfRep
- public void writeConfRep(PkConfRepEvent rep,
- OutputStream outputStream)
- throws IOException
- PkException
PkConfRepEvent
to the outputStream
.
This implementation simply invokes the writeRep
method.
writeGnrlRep
- public void writeGnrlRep(PkGnrlRepEvent rep,
- OutputStream outputStream)
- throws IOException
- PkException
PkGnrlRepEvent
to the outputStream
.
This implementation simply invokes the writeRep
method.