Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.jaxrs;
 
 import java.io.*;
 
 
public class JaxrsHttpRequest extends ServiceRequest
    protected final UriInfo _uriInfo;
    
    protected final HttpHeaders _headers;
    
    protected MultivaluedMap<StringString_qp;
    public JaxrsHttpRequest(UriInfo uriInfoHttpHeaders headersString decodedPath,
            String operationType)
    {
        this(uriInfoheadersdecodedPath_resolveOperation(operationType.));
    }
    
    public JaxrsHttpRequest(UriInfo uriInfoHttpHeaders headersString decodedPath,
            OperationType operationType)
    {
        super(decodedPathtrueoperationType);
         = uriInfo;
         = headers;
    }
    @Override
    public InputStream getInputStream() throws IOException {
        // must be directly assigned...
        throw new IOException("No InputStream available via "+getClass().getName()+" instance");
    }
    @Override
    public String getQueryParameter(String key) {
        if ( == null) {
             = .getQueryParameters();
            if ( == null) {
                return null;
            }
        }
        return .getFirst(key);
    }
    @Override
    public String getHeader(String key) {
        if ( == null) {
             = ( == null)? null : .getRequestHeaders();
            if ( == null) {
                return null;
            }
        }
        return .getFirst(key);
    }
New to GrepCode? Check out our FAQ X