2
* JBoss, Home of Professional Open Source
3
* Copyright 2005, JBoss Inc., and individual contributors as indicated
4
* by the @authors tag. See the copyright.txt in the distribution for a
5
* full listing of individual contributors.
7
* This is free software; you can redistribute it and/or modify it
8
* under the terms of the GNU Lesser General Public License as
9
* published by the Free Software Foundation; either version 2.1 of
10
* the License, or (at your option) any later version.
12
* This software is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this software; if not, write to the Free
19
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
23
package org.jboss.remoting.transport.http;
26
* There is some metadata that can be expected to be found in the
27
* metadata passed to the server invoker handlers for http transports.
28
* This class contains the constants for the keys to these values.
30
* @author <a href="mailto:tom.elrod@jboss.com">Tom Elrod</a>
32
public class HTTPMetadataConstants
34
public static final String METHODTYPE = "MethodType";
35
public static final String PATH = "Path";
36
public static final String QUERY = "Query";
37
public static final String HTTPVERSION = "HttpVersion";
38
public static final String RESPONSE_CODE = "ResponseCode";
39
public static final String CONTENTTYPE = "Content-Type";
40
public static final String RESPONSE_CODE_MESSAGE = "ResponseCodeMessage";
41
public static final String REMOTING_VERSION_HEADER = "JBoss-Remoting-Version";
42
public static final String REMOTING_USER_AGENT = "User-Agent";
43
public static final String REMOTING_LEASE_QUERY = "JBoss-Remoting-Lease-Query";
44
// for some reason, if using servlet invoker, the header name is all lower case (at least w/ JBoss/Tomcat)
45
public static final String REMOTING_LEASE_QUERY_LOWER_CASE = "jboss-remoting-lease-query";
48
* Key used for returning the value of java.net.URLConnection.getHeaderFields()
49
* in the metadata map passed to org.jboss.remoting.Client.invoke().
51
public static final String RESPONSE_HEADERS = "ResponseHeaders";
54
* Configuration key for indicating if http client invoker should
55
* throw exception on error from server or just return the error
58
public static final String NO_THROW_ON_ERROR = "NoThrowOnError";
61
* Configuration key for indicating that servlet invoker should return actual exception
62
* thrown by invocation handler.
64
public static final String DONT_RETURN_EXCEPTION = "dont-return-exception";
66
/** Used to distinguish special case of payload of type String. */
67
public static final String REMOTING_CONTENT_TYPE = "remotingContentType";
68
public static final String REMOTING_CONTENT_TYPE_LC = "remotingcontenttype";
70
public static final String REMOTING_CONTENT_TYPE_STRING = "remotingContentTypeString";
72
public static final String REMOTING_CONTENT_TYPE_NON_STRING = "remotingContentTypeNonString";
74
public static final String USE_REMOTING_CONTENT_TYPE = "useRemotingContentType";
b'\\ No newline at end of file'