1.1 --- a/src/share/jaxws_classes/com/sun/xml/internal/ws/message/stream/PayloadStreamReaderMessage.java Thu Apr 04 19:05:24 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/xml/internal/ws/message/stream/PayloadStreamReaderMessage.java Tue Apr 09 14:51:13 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -27,8 +27,8 @@ 1.11 1.12 import com.sun.xml.internal.ws.api.SOAPVersion; 1.13 import com.sun.xml.internal.ws.api.message.AttachmentSet; 1.14 -import com.sun.xml.internal.ws.api.message.HeaderList; 1.15 import com.sun.xml.internal.ws.api.message.Message; 1.16 +import com.sun.xml.internal.ws.api.message.MessageHeaders; 1.17 import com.sun.xml.internal.ws.message.AbstractMessageImpl; 1.18 import com.sun.xml.internal.ws.message.AttachmentSetImpl; 1.19 import com.sun.istack.internal.Nullable; 1.20 @@ -56,7 +56,7 @@ 1.21 this(null, reader,new AttachmentSetImpl(), soapVer); 1.22 } 1.23 1.24 - public PayloadStreamReaderMessage(@Nullable HeaderList headers, @NotNull XMLStreamReader reader, 1.25 + public PayloadStreamReaderMessage(@Nullable MessageHeaders headers, @NotNull XMLStreamReader reader, 1.26 @NotNull AttachmentSet attSet, @NotNull SOAPVersion soapVersion) { 1.27 super(soapVersion); 1.28 message = new StreamMessage(headers, attSet, reader, soapVersion); 1.29 @@ -66,10 +66,6 @@ 1.30 return message.hasHeaders(); 1.31 } 1.32 1.33 - public HeaderList getHeaders() { 1.34 - return message.getHeaders(); 1.35 - } 1.36 - 1.37 public AttachmentSet getAttachments() { 1.38 return message.getAttachments(); 1.39 } 1.40 @@ -113,4 +109,9 @@ 1.41 public Message copy() { 1.42 return message.copy(); 1.43 } 1.44 + 1.45 + @Override 1.46 + public @NotNull MessageHeaders getHeaders() { 1.47 + return message.getHeaders(); 1.48 + } 1.49 }