com.wewebu.ow.server.ecmimpl.cmis.wshandler
Class OwCMISContentHandler

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.wshandler.OwCMISContentHandler
All Implemented Interfaces:
Handler<SOAPMessageContext>, SOAPHandler<SOAPMessageContext>

public class OwCMISContentHandler
extends Object
implements SOAPHandler<SOAPMessageContext>

Default content handler. A SOAPHandler which will create a SOAP-Message, where content is provided as SOAP-Attachment (http://www.w3.org/TR/SOAP-attachments). The SOAP-Attachment is defined as XOP http://www.w3.org/2004/08/xop/include element.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

Since:
3.1.0.0

Field Summary
static String SYS_PROP_OWD_CMIS_SKIPMETROSOAPATTACHMENTFIX
          Set this system property to true if you want to skip using the Big SOAP Attachment workaround.
 
Constructor Summary
OwCMISContentHandler()
           
 
Method Summary
 void close(MessageContext msgCtx_p)
           
 Set<QName> getHeaders()
           
protected  String getMethods()
          Return all method names where the content is provided.
 boolean handleFault(SOAPMessageContext msgCtx_p)
           
 boolean handleMessage(SOAPMessageContext msgCtx_p)
          Workaround for OutOfMemoryError when sending big Attachments with Metro JAX-WS RI.
static boolean isSkipMetroSOAPAttachmentFix()
           
protected  boolean processContent(SOAPMessageContext msgCtx_p)
          Method which check if a content processing is needed for that call.
static void setAttachmentToContext(org.oasis_open.docs.ns.cmis.messaging._200908.CmisContentStreamType content_p, BindingProvider bindingProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYS_PROP_OWD_CMIS_SKIPMETROSOAPATTACHMENTFIX

public static final String SYS_PROP_OWD_CMIS_SKIPMETROSOAPATTACHMENTFIX
Set this system property to true if you want to skip using the Big SOAP Attachment workaround. The default value is false.
See handleMessage(SOAPMessageContext)

See Also:
Constant Field Values
Constructor Detail

OwCMISContentHandler

public OwCMISContentHandler()
Method Detail

isSkipMetroSOAPAttachmentFix

public static boolean isSkipMetroSOAPAttachmentFix()

getHeaders

public Set<QName> getHeaders()
Specified by:
getHeaders in interface SOAPHandler<SOAPMessageContext>

close

public void close(MessageContext msgCtx_p)
Specified by:
close in interface Handler<SOAPMessageContext>

handleFault

public boolean handleFault(SOAPMessageContext msgCtx_p)
Specified by:
handleFault in interface Handler<SOAPMessageContext>

handleMessage

public boolean handleMessage(SOAPMessageContext msgCtx_p)
Workaround for OutOfMemoryError when sending big Attachments with Metro JAX-WS RI.

Specified by:
handleMessage in interface Handler<SOAPMessageContext>

getMethods

protected String getMethods()
Return all method names where the content is provided.

Returns:
String with the method names

processContent

protected boolean processContent(SOAPMessageContext msgCtx_p)
                          throws SOAPException
Method which check if a content processing is needed for that call.

Parameters:
msgCtx_p - SOAPMessageContext current context
Returns:
boolean true if handling should be done
Throws:
SOAPException
Since:
3.2.0.0

setAttachmentToContext

public static void setAttachmentToContext(org.oasis_open.docs.ns.cmis.messaging._200908.CmisContentStreamType content_p,
                                          BindingProvider bindingProvider)


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.