public String getContentType(MessageContext messageContext, OMOutputFormat format, String soapAction) { return messageFormatter.getContentType(messageContext, format, soapAction); }
public String getContentType(MessageContext messageContext, OMOutputFormat format, String soapAction) { return messageFormatter.getContentType(messageContext, format, soapAction); }
public String getContentTypeAsString() { return messageFormatter.getContentType(messageContext, format, soapAction); }
public String getContentType(MessageContext messageContext, OMOutputFormat format, String soapAction) { return messageFormatter.getContentType(messageContext, format, soapAction); }
messageFormatter.getContentType(msgContext, format, soapActionString));
messageFormatter.getContentType(msgContext, format, findSOAPAction(msgContext)));
private void sendUsingOutputStream(MessageContext msgContext) throws AxisFault { OMOutputFormat format = NhttpUtil.getOMOutputFormat(msgContext); MessageFormatter messageFormatter = MessageFormatterDecoratorFactory.createMessageFormatterDecorator(msgContext); OutputStream out = (OutputStream) msgContext.getProperty(MessageContext.TRANSPORT_OUT); if (msgContext.isServerSide()) { OutTransportInfo transportInfo = (OutTransportInfo) msgContext.getProperty(Constants.OUT_TRANSPORT_INFO); if (transportInfo != null) { transportInfo.setContentType( messageFormatter.getContentType(msgContext, format, msgContext.getSoapAction())); } else { throw new AxisFault(Constants.OUT_TRANSPORT_INFO + " has not been set"); } } try { messageFormatter.writeTo(msgContext, format, out, false); out.close(); } catch (IOException e) { handleException("IO Error sending response message", e); } }
private void sendUsingOutputStream(MessageContext msgContext) throws AxisFault { OMOutputFormat format = NhttpUtil.getOMOutputFormat(msgContext); MessageFormatter messageFormatter = MessageFormatterDecoratorFactory.createMessageFormatterDecorator(msgContext); OutputStream out = (OutputStream) msgContext.getProperty(MessageContext.TRANSPORT_OUT); if (msgContext.isServerSide()) { OutTransportInfo transportInfo = (OutTransportInfo) msgContext.getProperty(Constants.OUT_TRANSPORT_INFO); if (transportInfo != null) { transportInfo.setContentType( messageFormatter.getContentType(msgContext, format, msgContext.getSoapAction())); } else { throw new AxisFault(Constants.OUT_TRANSPORT_INFO + " has not been set"); } } try { messageFormatter.writeTo(msgContext, format, out, false); out.close(); } catch (IOException e) { handleException("IO Error sending response message", e); } }
messageFormatter.getContentType(msgContext, format, findSOAPAction(msgContext)));
messageFormatter.getContentType(msgContext, format, soapActionString));
response.setHeader( HTTP.CONTENT_TYPE, messageFormatter.getContentType(msgContext, format, msgContext.getSoapAction())); }else if( Boolean.TRUE == noEntityBody){ ((BasicHttpEntity)response.getEntity()).setChunked(false);
requestWithEntity.setHeader( HTTP.CONTENT_TYPE, messageFormatter.getContentType(msgContext, format, msgContext.getSoapAction())); httpRequest = requestWithEntity;
MessageFormatterDecoratorFactory.createMessageFormatterDecorator(msgContext); if(msgContext.getProperty(org.apache.axis2.Constants.Configuration.MESSAGE_TYPE) == null){ transportHeaders.put(HTTP.CONTENT_TYPE, messageFormatter.getContentType(msgContext, format, msgContext.getSoapAction()));
String contentType= formatter.getContentType(msgCtx, format, msgCtx.getSoapAction());
.getMessageFormatter(msgContext); url = messageFormatter.getTargetAddress(msgContext, format, url); String contentType = messageFormatter.getContentType(msgContext, format, soapActionString);
String contentType = messageFormatter.getContentType( msgContext, format, msgContext.getSoapAction());
String contentType = messageFormatter.getContentType( msgContext, format, msgContext.getSoapAction());
sourceResponse.removeHeader(HTTP.CONTENT_TYPE); sourceResponse.addHeader(HTTP.CONTENT_TYPE, formatter.getContentType( msgContext, format, msgContext.getSoapAction()));