public class SseEventInputImpl extends Object implements EventInput, Closeable
Constructor and Description |
---|
SseEventInputImpl(Annotation[] annotations,
javax.ws.rs.core.MediaType streamType,
javax.ws.rs.core.MediaType elementType,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
InputStream inputStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isClosed() |
javax.ws.rs.sse.InboundSseEvent |
read() |
javax.ws.rs.sse.InboundSseEvent |
read(javax.ws.rs.ext.Providers providers) |
byte[] |
readEvent(InputStream in) |
public SseEventInputImpl(Annotation[] annotations, javax.ws.rs.core.MediaType streamType, javax.ws.rs.core.MediaType elementType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream inputStream)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public boolean isClosed()
public javax.ws.rs.sse.InboundSseEvent read() throws IOException
IOException
public javax.ws.rs.sse.InboundSseEvent read(javax.ws.rs.ext.Providers providers) throws IOException
IOException
public byte[] readEvent(InputStream in) throws IOException
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.