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.poller;
016    
017    import com.liferay.portal.kernel.poller.PollerRequest;
018    import com.liferay.portal.kernel.poller.PollerResponse;
019    
020    /**
021     * @author Edward Han
022     */
023    public class PollerRequestResponsePair {
024    
025            public PollerRequestResponsePair(PollerRequest pollerRequest) {
026                    _pollerRequest = pollerRequest;
027            }
028    
029            public PollerRequestResponsePair(
030                    PollerRequest pollerRequest, PollerResponse pollerResponse) {
031    
032                    _pollerRequest = pollerRequest;
033                    _pollerResponse = pollerResponse;
034            }
035    
036            public PollerRequest getPollerRequest() {
037                    return _pollerRequest;
038            }
039    
040            public PollerResponse getPollerResponse() {
041                    return _pollerResponse;
042            }
043    
044            public void setPollerRequest(PollerRequest pollerRequest) {
045                    _pollerRequest = pollerRequest;
046            }
047    
048            public void setPollerResponse(PollerResponse pollerResponse) {
049                    _pollerResponse = pollerResponse;
050            }
051    
052            private PollerRequest _pollerRequest;
053            private PollerResponse _pollerResponse;
054    
055    }