org.frameworkset.http.converter.json.MappingJacksonInputMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-mvc Show documentation
Show all versions of bboss-mvc Show documentation
bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com
The newest version!
package org.frameworkset.http.converter.json;
import java.io.IOException;
import java.io.InputStream;
import javax.servlet.http.HttpServletRequest;
import org.frameworkset.http.HttpHeaders;
import org.frameworkset.http.HttpInputMessage;
public class MappingJacksonInputMessage implements HttpInputMessage {
private final InputStream body;
private final HttpHeaders headers;
private Class> deserializationView;
public MappingJacksonInputMessage(InputStream body, HttpHeaders headers) {
this.body = body;
this.headers = headers;
}
public MappingJacksonInputMessage(InputStream body, HttpHeaders headers, Class> deserializationView) {
this(body, headers);
this.deserializationView = deserializationView;
}
@Override
public InputStream getBody() throws IOException {
return this.body;
}
@Override
public HttpHeaders getHeaders() {
return this.headers;
}
public void setDeserializationView(Class> deserializationView) {
this.deserializationView = deserializationView;
}
public Class> getDeserializationView() {
return this.deserializationView;
}
@Override
public HttpServletRequest getServletRequest() {
// TODO Auto-generated method stub
return null;
}
}