001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }