jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/transport/http/WSHTTPConnection.java
equal
deleted
inserted
replaced
85 * Initially, no header is set. |
85 * Initially, no header is set. |
86 * |
86 * |
87 * <p> |
87 * <p> |
88 * This parameter is usually exposed to {@link WebServiceContext} |
88 * This parameter is usually exposed to {@link WebServiceContext} |
89 * as {@link Packet#OUTBOUND_TRANSPORT_HEADERS}, and thus it |
89 * as {@link Packet#OUTBOUND_TRANSPORT_HEADERS}, and thus it |
90 * should ignore <tt>Content-Type</tt> and <tt>Content-Length</tt> headers. |
90 * should ignore {@code Content-Type} and {@code Content-Length} headers. |
91 * |
91 * |
92 * @param headers |
92 * @param headers |
93 * See {@link HttpURLConnection#getHeaderFields()} for the format. |
93 * See {@link HttpURLConnection#getHeaderFields()} for the format. |
94 * This parameter may not be null, but since the user application |
94 * This parameter may not be null, but since the user application |
95 * code may invoke this method, a graceful error checking with |
95 * code may invoke this method, a graceful error checking with |
103 } |
103 } |
104 |
104 |
105 public abstract void setResponseHeader(String key, List<String> value); |
105 public abstract void setResponseHeader(String key, List<String> value); |
106 |
106 |
107 /** |
107 /** |
108 * Sets the <tt>"Content-Type"</tt> header. |
108 * Sets the {@code "Content-Type"} header. |
109 * |
109 * |
110 * <p> |
110 * <p> |
111 * If the Content-Type header has already been set, this method will overwrite |
111 * If the Content-Type header has already been set, this method will overwrite |
112 * the previously set value. If not, this method adds it. |
112 * the previously set value. If not, this method adds it. |
113 * |
113 * |
114 * <p> |
114 * <p> |
115 * Note that this method and {@link #setResponseHeaders(java.util.Map)} |
115 * Note that this method and {@link #setResponseHeaders(java.util.Map)} |
116 * may be invoked in any arbitrary order. |
116 * may be invoked in any arbitrary order. |
117 * |
117 * |
118 * @param value |
118 * @param value |
119 * strings like <tt>"application/xml; charset=UTF-8"</tt> or |
119 * strings like {@code "application/xml; charset=UTF-8"} or |
120 * <tt>"image/jpeg"</tt>. |
120 * {@code "image/jpeg"}. |
121 */ |
121 */ |
122 public abstract void setContentTypeResponseHeader(@NotNull String value); |
122 public abstract void setContentTypeResponseHeader(@NotNull String value); |
123 |
123 |
124 /** |
124 /** |
125 * Sets the HTTP response code like {@link #OK}. |
125 * Sets the HTTP response code like {@link #OK}. |