< prev index next >
src/java.xml.ws/share/classes/javax/xml/ws/spi/http/HttpExchange.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 39,49 ****
* This class encapsulates a HTTP request received and a
* response to be generated in one exchange. It provides methods
* for examining the request from the client, and for building and
* sending the response.
* <p>
! * A <code>HttpExchange</code> must be closed to free or reuse
* underlying resources. The effect of failing to close an exchange
* is undefined.
*
* @author Jitendra Kotamraju
* @since 1.7, JAX-WS 2.2
--- 39,49 ----
* This class encapsulates a HTTP request received and a
* response to be generated in one exchange. It provides methods
* for examining the request from the client, and for building and
* sending the response.
* <p>
! * A {@code HttpExchange} must be closed to free or reuse
* underlying resources. The effect of failing to close an exchange
* is undefined.
*
* @author Jitendra Kotamraju
* @since 1.7, JAX-WS 2.2
*** 275,285 ****
*/
public abstract String getQueryString();
/**
* Returns an attribute that is associated with this
! * <code>HttpExchange</code>. JAX-WS handlers and endpoints may then
* access the attribute via {@link MessageContext}.
* <p>
* Servlet containers must expose {@link MessageContext#SERVLET_CONTEXT},
* {@link MessageContext#SERVLET_REQUEST}, and
* {@link MessageContext#SERVLET_RESPONSE}
--- 275,285 ----
*/
public abstract String getQueryString();
/**
* Returns an attribute that is associated with this
! * {@code HttpExchange}. JAX-WS handlers and endpoints may then
* access the attribute via {@link MessageContext}.
* <p>
* Servlet containers must expose {@link MessageContext#SERVLET_CONTEXT},
* {@link MessageContext#SERVLET_REQUEST}, and
* {@link MessageContext#SERVLET_RESPONSE}
*** 297,316 ****
*/
public abstract Object getAttribute(String name);
/**
* Gives all the attribute names that are associated with
! * this <code>HttpExchange</code>.
*
* @return set of all attribute names
* @see #getAttribute(String)
*/
public abstract Set<String> getAttributeNames();
/**
* Returns the {@link Principal} that represents the authenticated
! * user for this <code>HttpExchange</code>.
*
* @return Principal for an authenticated user, or
* <tt>null</tt> if not authenticated
*/
public abstract Principal getUserPrincipal();
--- 297,316 ----
*/
public abstract Object getAttribute(String name);
/**
* Gives all the attribute names that are associated with
! * this {@code HttpExchange}.
*
* @return set of all attribute names
* @see #getAttribute(String)
*/
public abstract Set<String> getAttributeNames();
/**
* Returns the {@link Principal} that represents the authenticated
! * user for this {@code HttpExchange}.
*
* @return Principal for an authenticated user, or
* <tt>null</tt> if not authenticated
*/
public abstract Principal getUserPrincipal();
< prev index next >