Example usage for javax.servlet.http WebConnection getInputStream

List of usage examples for javax.servlet.http WebConnection getInputStream

Introduction

In this page you can find the example usage for javax.servlet.http WebConnection getInputStream.

Prototype

public ServletInputStream getInputStream() throws IOException;

Source Link

Document

Returns an input stream for this web connection.

Usage

From source file:org.sample.protocolhandler.MyProtocolHandler.java

@Override
public void init(WebConnection wc) {
    try (ServletInputStream input = wc.getInputStream(); ServletOutputStream output = wc.getOutputStream();) {
    } catch (IOException ex) {
    }//from  ww w .  j a  v  a  2s .co  m
}