Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* *********************************************************************
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0.
  * 
  * If a copy of the MPL was not distributed with this file, You can obtain
  * one at http://mozilla.org/MPL/2.0/.
  * 
  * This Source Code Form is "Incompatible With Secondary Licenses", as
  * defined by the Mozilla Public License, v. 2.0.
 * ********************************************************************* */
package fiftyone.mobile.detection.matchers.segment;
A class used for requesting the results for a RegexSegment handler.

Author(s):
51Degrees.mobi
Version:
2.2.8.9
public class Request extends fiftyone.mobile.detection.matchers.Request {

    
The results from this request.
    private final Results _results;
    
The segment object currently being used.
    private final Segments _target;

    

Returns:
The segment object currently being used.
    Segments getTarget() {
        return ;
    }

    

Returns:
The handler object.
    @Override
    public SegmentHandler getHandler() {
        SegmentHandler sh = (SegmentHandlersuper.getHandler();
        return sh;
    }

    

Returns:
The results from this request.
    Results getResults() {
        return ;
    }

    
Constructs a new instance of Request.

Parameters:
userAgent User Agent String being accessed.
handler The handler which is being requested.
    Request(String userAgentSegmentHandler handler) {
        super(userAgenthandler);
         = getHandler().createAllSegments(userAgent);
         = new Results();
    }
New to GrepCode? Check out our FAQ X