0N/A/*
2362N/A * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/Apackage sun.net.httpserver;
0N/A
0N/Aimport java.io.*;
0N/Aimport java.nio.*;
0N/Aimport java.nio.channels.*;
0N/Aimport java.net.*;
0N/Aimport javax.net.ssl.*;
0N/Aimport java.util.*;
0N/Aimport sun.net.www.MessageHeader;
0N/Aimport com.sun.net.httpserver.*;
0N/Aimport com.sun.net.httpserver.spi.*;
0N/A
0N/Aclass HttpsExchangeImpl extends HttpsExchange {
0N/A
0N/A ExchangeImpl impl;
0N/A
0N/A HttpsExchangeImpl (ExchangeImpl impl) throws IOException {
0N/A this.impl = impl;
0N/A }
0N/A
0N/A public Headers getRequestHeaders () {
0N/A return impl.getRequestHeaders();
0N/A }
0N/A
0N/A public Headers getResponseHeaders () {
0N/A return impl.getResponseHeaders();
0N/A }
0N/A
0N/A public URI getRequestURI () {
0N/A return impl.getRequestURI();
0N/A }
0N/A
0N/A public String getRequestMethod (){
0N/A return impl.getRequestMethod();
0N/A }
0N/A
0N/A public HttpContextImpl getHttpContext (){
0N/A return impl.getHttpContext();
0N/A }
0N/A
0N/A public void close () {
0N/A impl.close();
0N/A }
0N/A
0N/A public InputStream getRequestBody () {
0N/A return impl.getRequestBody();
0N/A }
0N/A
0N/A public int getResponseCode () {
0N/A return impl.getResponseCode();
0N/A }
0N/A
0N/A public OutputStream getResponseBody () {
0N/A return impl.getResponseBody();
0N/A }
0N/A
0N/A
0N/A public void sendResponseHeaders (int rCode, long contentLen)
0N/A throws IOException
0N/A {
0N/A impl.sendResponseHeaders (rCode, contentLen);
0N/A }
0N/A
0N/A public InetSocketAddress getRemoteAddress (){
0N/A return impl.getRemoteAddress();
0N/A }
0N/A
0N/A public InetSocketAddress getLocalAddress (){
0N/A return impl.getLocalAddress();
0N/A }
0N/A
0N/A public String getProtocol (){
0N/A return impl.getProtocol();
0N/A }
0N/A
0N/A public SSLSession getSSLSession () {
0N/A return impl.getSSLSession ();
0N/A }
0N/A
0N/A public Object getAttribute (String name) {
0N/A return impl.getAttribute (name);
0N/A }
0N/A
0N/A public void setAttribute (String name, Object value) {
0N/A impl.setAttribute (name, value);
0N/A }
0N/A
0N/A public void setStreams (InputStream i, OutputStream o) {
0N/A impl.setStreams (i, o);
0N/A }
0N/A
0N/A public HttpPrincipal getPrincipal () {
0N/A return impl.getPrincipal();
0N/A }
0N/A
0N/A ExchangeImpl getExchangeImpl () {
0N/A return impl;
0N/A }
0N/A}