jaxws/src/java.xml.ws/share/classes/com/oracle/webservices/internal/api/message/MessageContextFactory.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
38 import javax.xml.ws.WebServiceFeature; |
38 import javax.xml.ws.WebServiceFeature; |
39 |
39 |
40 public abstract class MessageContextFactory |
40 public abstract class MessageContextFactory |
41 { |
41 { |
42 private static final MessageContextFactory DEFAULT = new com.sun.xml.internal.ws.api.message.MessageContextFactory(new WebServiceFeature[0]); |
42 private static final MessageContextFactory DEFAULT = new com.sun.xml.internal.ws.api.message.MessageContextFactory(new WebServiceFeature[0]); |
|
43 |
|
44 protected com.sun.xml.internal.ws.api.message.saaj.SAAJFactory saajFactory = null; |
43 |
45 |
44 protected abstract MessageContextFactory newFactory(WebServiceFeature ... f); |
46 protected abstract MessageContextFactory newFactory(WebServiceFeature ... f); |
45 |
47 |
46 public abstract MessageContext createContext(); |
48 public abstract MessageContext createContext(); |
47 |
49 |
125 |
127 |
126 @Deprecated |
128 @Deprecated |
127 private static interface Creator { |
129 private static interface Creator { |
128 public MessageContext create(MessageContextFactory f); |
130 public MessageContext create(MessageContextFactory f); |
129 } |
131 } |
|
132 |
|
133 public void setSAAJFactory(com.sun.xml.internal.ws.api.message.saaj.SAAJFactory saajFactory) { |
|
134 this.saajFactory = saajFactory; |
|
135 } |
130 } |
136 } |