All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.httpclient.ejb.EjbConstants Maven / Gradle / Ivy

Go to download

This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up with different versions on classes on the class path).

The newest version!
/*
 * JBoss, Home of Professional Open Source.
 * Copyright 2022 Red Hat, Inc., and individual contributors
 * as indicated by the @author tags.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.wildfly.httpclient.ejb;

import org.wildfly.httpclient.common.ContentType;
import io.undertow.util.HttpString;

/**
 * @author Stuart Douglas
 * @author Richard Opalka
 */
final class EjbConstants {

    // request headers
    static final ContentType INVOCATION_ACCEPT = new ContentType("application/x-wf-ejb-response", 1);
    static final ContentType INVOCATION = new ContentType("application/x-wf-ejb-jbmar-invocation", 1);
    static final ContentType SESSION_OPEN = new ContentType("application/x-wf-jbmar-sess-open", 1);
    static final ContentType EJB_EXCEPTION = new ContentType("application/x-wf-jbmar-exception", 1);

    // response headers
    static final ContentType EJB_RESPONSE = new ContentType("application/x-wf-ejb-jbmar-response", 1);
    static final ContentType EJB_RESPONSE_NEW_SESSION = new ContentType("application/x-wf-ejb-jbmar-new-session", 1);
    static final ContentType EJB_DISCOVERY_RESPONSE = new ContentType("application/x-wf-ejb-jbmar-discovery-response", 1);

    static final HttpString EJB_SESSION_ID = new HttpString("x-wf-ejb-jbmar-session-id");
    static final HttpString INVOCATION_ID = new HttpString("X-wf-invocation-id");

    // paths
    static final String EJB_CANCEL_PATH = "/cancel";
    static final String EJB_DISCOVER_PATH = "/discover";
    static final String EJB_INVOKE_PATH = "/invoke";
    static final String EJB_OPEN_PATH = "/open";

    static final String DISCOVERY_PATH_PREFIX =  "/ejb";

    // cookies
    static final String JSESSIONID_COOKIE_NAME = "JSESSIONID";

    // protocols
    static final String HTTP_SCHEME = "http";
    static final String HTTPS_SCHEME = "https";

    // ports
    static final int HTTP_PORT = 80;
    static final int HTTPS_PORT = 443;

    private EjbConstants() {
        // forbidden instantiation
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy