Skip to content

Important classes are package-private [SWS-153] #307

Closed
@gregturn

Description

@gregturn

Jeff Peterson opened SWS-153 and commented

A great deal of important classes are package private. While writing an interceptor, I discovered that I would need access to some of these classes in order to appropriately process the message.

For example, I was trying to add some header elements to an outgoing message.

 // create header element
 SoapMessage msg = (SoapMessage) messageContext.getResponse();
 SoapHeaderElement security = msg.getEnvelope().getHeader().addHeaderElement(WSSE_SECURITY);
  // add child elements
 // but I can't do this because SaajSoapHeaderElement is package-private
((SaajSoapHeaderElement) security).getSaajHeaderElement().addChildElement(...);

When I was poking around in the SVN i noticed a ton of package-private classes. May i suggest that they be made public?

org.springframework.ws.soap.saaj.*
org.springframework.ws.soap.axiom.*
...


Affects: 1.0 M3

Attachments:

Issue Links:

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently applytype: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions