Example usage for javax.servlet.http WebConnection getOutputStream

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

Introduction

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

Prototype

public ServletOutputStream getOutputStream() throws IOException;

Source Link

Document

Returns an output 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. ja va  2s.c  om*/
}