public class RemoteStreamConvertor extends net.idea.modbcum.p.DefaultAmbitProcessor<ByteArrayOutputStream,org.restlet.representation.Representation>
Modifier and Type | Field and Description |
---|---|
protected ByteArrayOutputStream |
entity |
protected String |
fileExtension |
protected String |
fileNamePrefix |
protected org.restlet.data.Method |
method |
Constructor and Description |
---|
RemoteStreamConvertor(WrappedService<org.apache.http.auth.UsernamePasswordCredentials> query,
ByteArrayOutputStream entity,
org.restlet.data.MediaType entityType,
org.restlet.data.Method method,
org.restlet.data.MediaType media) |
Modifier and Type | Method and Description |
---|---|
String |
getFileExtension() |
String |
getFileNamePrefix() |
org.restlet.representation.Representation |
process(ByteArrayOutputStream form) |
protected void |
processStream(InputStream in,
OutputStream stream) |
protected void |
setDisposition(org.restlet.representation.Representation rep) |
void |
setFileExtension(String fileExtension) |
void |
setFileNamePrefix(String fileNamePrefix) |
protected ByteArrayOutputStream entity
protected org.restlet.data.Method method
protected String fileNamePrefix
protected String fileExtension
public RemoteStreamConvertor(WrappedService<org.apache.http.auth.UsernamePasswordCredentials> query, ByteArrayOutputStream entity, org.restlet.data.MediaType entityType, org.restlet.data.Method method, org.restlet.data.MediaType media)
protected void processStream(InputStream in, OutputStream stream) throws IOException
IOException
public org.restlet.representation.Representation process(ByteArrayOutputStream form) throws Exception
Exception
protected void setDisposition(org.restlet.representation.Representation rep)
public String getFileExtension()
public void setFileExtension(String fileExtension)
public String getFileNamePrefix()
public void setFileNamePrefix(String fileNamePrefix)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.