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() |
byte[] |
readEvent(InputStream in) |
void |
setProviders(javax.ws.rs.ext.Providers providers) |
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 byte[] readEvent(InputStream in) throws IOException
IOException
public void setProviders(javax.ws.rs.ext.Providers providers)
Copyright © 2020 JBoss by Red Hat. All rights reserved.