Package org.apache.axis2.om.impl.dom

Examples of org.apache.axis2.om.impl.dom.TextImpl


     * @see org.apache.axis2.om.OMFactory#createText(
     *      org.apache.axis2.om.OMElement,java.lang.String)
     */
    public OMText createText(OMElement parent, String text) {
        ElementImpl parentElem = (ElementImpl) parent;
        TextImpl txt = new TextImpl((DocumentImpl) parentElem
                .getOwnerDocument(), text);
        parentElem.addChild(txt);
        return txt;
    }
View Full Code Here


     * Creates a OMDOM Text node carrying the given value.
     *
     * @see org.apache.axis2.om.OMFactory#createText(java.lang.String)
     */
    public OMText createText(String s) {
        return new TextImpl(s);
    }
View Full Code Here

     * @see org.apache.axis2.om.OMFactory#createText(java.lang.String, int)
     */
    public OMText createText(String text, int type) {
        switch (type) {
        case Node.TEXT_NODE:
            return new TextImpl(text);
        default:
            throw new OMDOMException("Only Text nodes are supported right now");
        }
    }
View Full Code Here

     *
     * @see org.apache.axis2.om.OMFactory#createText(java.lang.String,
     *      java.lang.String, boolean)
     */
    public OMText createText(String text, String mimeType, boolean optimize) {
        return new TextImpl(text, mimeType, optimize);
    }
View Full Code Here

     * MTOM optimization configuration and returns it.
     *
     * @see org.apache.axis2.om.OMFactory#createText(java.lang.Object, boolean)
     */
    public OMText createText(Object dataHandler, boolean optimize) {
        return new TextImpl(dataHandler, optimize);
    }
View Full Code Here

     * @see org.apache.axis2.om.OMFactory#createText(org.apache.axis2.om.OMElement,
     *      java.lang.String, java.lang.String, boolean)
     */
    public OMText createText(OMElement parent, String s, String mimeType,
            boolean optimize) {
        TextImpl text = new TextImpl((DocumentImpl) ((ElementImpl) parent)
                .getOwnerDocument(), s, mimeType, optimize);
        parent.addChild(text);
        return text;
    }
View Full Code Here

        return text;
    }

    public OMText createText(String contentID, OMElement parent,
            OMXMLParserWrapper builder) {
        TextImpl text = new TextImpl(contentID, parent, builder);
        parent.addChild(text);
        return text;
    }
View Full Code Here

            String charSetEncoding = BuilderUtil.getCharSetEncoding(contentTypeStr);
            msgContext.setProperty(
                    Constants.Configuration.CHARACTER_SET_ENCODING, charSetEncoding);
            boolean eprFound = false;
            if (endpointsConfiguration != null) {
                URLEndpoint epr = endpointsConfiguration.getEndpoint(request.getRequestLine().getUri());
                if (epr != null) {
                    eprFound = true;
                    String type = TransportUtils.getContentType(contentTypeStr, msgContext);
                    msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE, type);
                    epr.setParameters(msgContext);

                    Builder builder = epr.getBuilder(type);
                    if (HTTPTransportUtils.isRESTRequest(contentTypeStr)) {
                        RESTUtil.processPOSTRequest(msgContext, is, os,
                                request.getRequestLine().getUri(), contentType, builder, isRestDispatching);
                    } else {
View Full Code Here

            String contentTypeStr = contentType != null ?
                    contentType.getValue() : inferContentType();

            boolean eprFound = false;
            if (endpointsConfiguration != null) {
                URLEndpoint epr = endpointsConfiguration.getEndpoint(request.getRequestLine().getUri());
                if (epr != null) {
                    eprFound = true;
                    String type = TransportUtils.getContentType(contentTypeStr, msgContext);
                    msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE, type);

                    epr.setParameters(msgContext);

                    Builder builder = epr.getBuilder(type);
                    RESTUtil.processGetAndDeleteRequest(
                            msgContext, os, request.getRequestLine().getUri(),
                            request.getFirstHeader(HTTP.CONTENT_TYPE), builder,
                            method, isRestDispatching);
                }
View Full Code Here

        params = getListenerParameters();


        param = transportIn.getParameter(NhttpConstants.ENDPOINTS_CONFIGURATION);
        if (param != null && param.getValue() != null) {
            endpoints = new URLEndpointsConfigurationFactory().create(param.getValue().toString());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.om.impl.dom.TextImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.