Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.service.servlet;
 
 import java.io.*;
 
 
com.fasterxml.clustermate.service.ServiceRequest implemented over native Servlet request.
public class ServletServiceRequest extends ServiceRequest
{
    
Underlying response object exposed by Servlet API.
    protected final HttpServletRequest _request;
    protected InputStream _nativeStream;
    
    /*
    /**********************************************************************
    /* Life-cycle
    /**********************************************************************
     */
    public ServletServiceRequest(HttpServletRequest rString pathboolean pathDecoded)
    {
        /* What exactly should we use here? getPathInfo() seems to decode
         * things, so it's not optimal; but getRequestURL() leaves
         * path...
         * 
         */
        super(pathpathDecoded_resolveOperation(r.getMethod(), .));
         = r;
    }
    /*
    /**********************************************************************
    /* Basic ServiceRequest impl
    /**********************************************************************
     */
    @Override
    public InputStream getNativeInputStream() throws IOException {
        if ( == null) {
             = .getInputStream();
        }
        return ;
    }
    @Override
    public String getQueryParameter(String key) {
        return .getParameter(key);
    }
    @Override
    public String getHeader(String key)
    {
        return .getHeader(key);
    }
    
    /*
    /**********************************************************************
    /* Extended API
    /**********************************************************************
     */

    
Accessor for getting underlying javax.servlet.http.HttpServletRequest
        return ;
    }
New to GrepCode? Check out our FAQ X