001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    
019    /**
020     * @author Raymond Augé
021     */
022    public class RemoteOptionsException extends PortalException {
023    
024            public static final int REMOTE_ADDRESS = 1;
025    
026            public static final int REMOTE_GROUP_ID = 3;
027    
028            public static final int REMOTE_PATH_CONTEXT = 4;
029    
030            public static final int REMOTE_PORT = 2;
031    
032            public RemoteOptionsException(int type) {
033                    _type = type;
034            }
035    
036            public String getRemoteAddress() {
037                    return _remoteAddress;
038            }
039    
040            public long getRemoteGroupId() {
041                    return _remoteGroupId;
042            }
043    
044            public String getRemotePathContext() {
045                    return _remotePathContext;
046            }
047    
048            public int getRemotePort() {
049                    return _remotePort;
050            }
051    
052            public int getType() {
053                    return _type;
054            }
055    
056            public void setRemoteAddress(String remoteAddress) {
057                    _remoteAddress = remoteAddress;
058            }
059    
060            public void setRemoteGroupId(long remoteGroupId) {
061                    _remoteGroupId = remoteGroupId;
062            }
063    
064            public void setRemotePathContext(String remotePathContext) {
065                    _remotePathContext = remotePathContext;
066            }
067    
068            public void setRemotePort(int remotePort) {
069                    _remotePort = remotePort;
070            }
071    
072            private String _remoteAddress;
073            private long _remoteGroupId;
074            private String _remotePathContext;
075            private int _remotePort;
076            private int _type;
077    
078    }